import { $APP, shadow$provide } from "./shared.js";
const shadow_esm_import = function(x) { return import(x) };
var $app$main$data$profile$access_tokens_fetched$$,$app$main$data$profile$access_token_created$$,$app$main$data$profile$fetch_access_tokens$$,$app$main$data$profile$delete_access_token$$,$app$main$data$profile$create_access_token$$,$app$main$data$profile$request_email_change$$,$app$main$ui$components$forms$textarea$$,$app$main$data$profile$update_photo$$,$app$main$data$profile$delete_subscription$$,$app$main$data$profile$request_account_deletion$$,$app$main$data$profile$update_password$$,$app$main$data$profile$update_notifications$$,
$app$main$data$profile$update_profile$$,$app$main$ui$settings$access_tokens$access_token_modal$$,$app$main$ui$settings$access_tokens$access_tokens_hero$$,$app$main$ui$settings$access_tokens$access_token_actions$$,$app$main$ui$settings$access_tokens$access_tokens_page$$,$app$main$ui$settings$change_email$on_error$$,$app$main$ui$settings$change_email$on_success$$,$app$main$ui$settings$change_email$on_submit$$,$app$main$ui$settings$change_email$change_email_modal$$,$app$main$ui$settings$delete_account$on_error$$,
$app$main$ui$settings$delete_account$delete_account_modal$$,$app$main$ui$settings$feedback$feedback_form_STAR_$$,$app$main$ui$settings$feedback$feedback_page_STAR_$$,$app$main$ui$settings$notifications$on_submit$$,$app$main$ui$settings$notifications$notifications_page_STAR_$$,$app$main$ui$settings$options$on_success$$,$app$main$ui$settings$options$on_submit$$,$app$main$ui$settings$options$options_form$$,$app$main$ui$settings$options$options_page$$,$app$main$ui$settings$password$on_error$$,$app$main$ui$settings$password$on_success$$,
$app$main$ui$settings$password$on_submit$$,$app$main$ui$settings$password$password_form$$,$app$main$ui$settings$password$password_page$$,$app$main$ui$settings$profile$on_success$$,$app$main$ui$settings$profile$on_submit$$,$app$main$ui$settings$profile$profile_form$$,$app$main$ui$settings$profile$profile_photo_form$$,$app$main$ui$settings$profile$profile_page$$,$app$main$ui$settings$sidebar$go_settings_profile$$,$app$main$ui$settings$sidebar$go_settings_feedback$$,$app$main$ui$settings$sidebar$go_settings_password$$,
$app$main$ui$settings$sidebar$go_settings_options$$,$app$main$ui$settings$sidebar$go_settings_subscription$$,$app$main$ui$settings$sidebar$go_settings_access_tokens$$,$app$main$ui$settings$sidebar$go_settings_notifications$$,$app$main$ui$settings$sidebar$show_release_notes$$,$app$main$ui$settings$sidebar$sidebar_content$$,$app$main$ui$settings$subscription$plan_card_STAR_$$,$app$main$ui$settings$subscription$subscribe_management_dialog$$,$app$main$ui$settings$subscription$subscription_success_dialog$$,
$app$main$ui$settings$subscription$subscription_page_STAR_$$,$app$main$ui$settings$settings_STAR_$$,$app$main$data$profile$update_profile_54649$$,$app$main$data$profile$request_email_change_54665$$,$app$main$data$profile$update_password_54678$$,$app$main$data$profile$update_notifications_54688$$,$app$main$data$profile$update_photo_54716$$,$app$main$data$profile$request_account_deletion_54746$$,$app$main$data$profile$access_tokens_fetched_54786$$,$app$main$data$profile$fetch_access_tokens_54789$$,
$app$main$data$profile$access_token_created_54794$$,$app$main$data$profile$create_access_token_54802$$,$app$main$data$profile$delete_access_token_54810$$,$cljs$cst$6410$subscribe_to_trial$$,$cljs$cst$6403$error_report$$,$cljs$cst$6402$subject$$,$cljs$cst$6400$owner_teams_with_people$$,$cljs$cst$6412$subscription_name$$,$cljs$cst$6409$current_subscription$$,$cljs$cst$6404$feedback_disabled$$,$cljs$cst$6395$expires_at$$,$cljs$cst$6399$email_2$$,$cljs$cst$6397$email_1$$,$cljs$cst$6394$expiration$$,$cljs$cst$6414$start_date$$,
$cljs$cst$6415$app_DOT_main_DOT_ui_DOT_settings_SLASH_dashboard$$,$cljs$cst$6405$send_user_feedback$$,$cljs$cst$6401$delete_account$$,$cljs$cst$6407$redirect_to_payment_details$$,$cljs$cst$6408$subscription_type$$,$cljs$cst$6406$min_members$$,$cljs$cst$6392$expiration_date$$,$cljs$cst$6398$changed$$,$cljs$cst$6413$subscription_success$$,$cljs$cst$6411$management_dialog$$,$cljs$cst$6396$access_token$$,$cljs$cst$6393$perms$$;
$app$main$data$profile$access_tokens_fetched$$=function($access_tokens$$){typeof $app$main$data$profile$access_tokens_fetched_54786$$==="undefined"&&($app$main$data$profile$access_tokens_fetched_54786$$=function($access_tokens$jscomp$1$$,$meta54787$$){this.$access_tokens$=$access_tokens$jscomp$1$$;this.$meta54787$=$meta54787$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$access_tokens_fetched_54786$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$access_tokens_fetched_54786$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3225$app_DOT_main_DOT_data_DOT_profile_SLASH_access_tokens_fetched$$},$app$main$data$profile$access_tokens_fetched_54786$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54788$$,$meta54787__$1$$){return new $app$main$data$profile$access_tokens_fetched_54786$$(this.$access_tokens$,$meta54787__$1$$)},$app$main$data$profile$access_tokens_fetched_54786$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54787$},$app$main$data$profile$access_tokens_fetched_54786$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$access_tokens_fetched_54786$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1682$$,$state$jscomp$198$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$198$$,$APP.$cljs$cst$1175$access_tokens$$,this.$access_tokens$)});return new $app$main$data$profile$access_tokens_fetched_54786$$($access_tokens$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$access_token_created$$=function($access_token$$){typeof $app$main$data$profile$access_token_created_54794$$==="undefined"&&($app$main$data$profile$access_token_created_54794$$=function($access_token$jscomp$1$$,$meta54795$$){this.$access_token$=$access_token$jscomp$1$$;this.$meta54795$=$meta54795$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$access_token_created_54794$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$profile$access_token_created_54794$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3228$app_DOT_main_DOT_data_DOT_profile_SLASH_access_token_created$$},$app$main$data$profile$access_token_created_54794$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54796$$,$meta54795__$1$$){return new $app$main$data$profile$access_token_created_54794$$(this.$access_token$,$meta54795__$1$$)},$app$main$data$profile$access_token_created_54794$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54795$},$app$main$data$profile$access_token_created_54794$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$access_token_created_54794$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1684$$,$state$jscomp$199$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$199$$,$APP.$cljs$cst$3229$access_token_created$$,this.$access_token$)});return new $app$main$data$profile$access_token_created_54794$$($access_token$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$fetch_access_tokens$$=function(){typeof $app$main$data$profile$fetch_access_tokens_54789$$==="undefined"&&($app$main$data$profile$fetch_access_tokens_54789$$=function($meta54790$$){this.$meta54790$=$meta54790$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$fetch_access_tokens_54789$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$fetch_access_tokens_54789$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3226$app_DOT_main_DOT_data_DOT_profile_SLASH_fetch_access_tokens$$},
$app$main$data$profile$fetch_access_tokens_54789$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54791$$,$meta54790__$1$$){return new $app$main$data$profile$fetch_access_tokens_54789$$($meta54790__$1$$)},$app$main$data$profile$fetch_access_tokens_54789$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54790$},$app$main$data$profile$fetch_access_tokens_54789$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$fetch_access_tokens_54789$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){return $APP.$beicon$v2$core$map$$($app$main$data$profile$access_tokens_fetched$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3227$get_access_tokens$$))});return new $app$main$data$profile$fetch_access_tokens_54789$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$delete_access_token$$=function($p__54808$$){var $map__54809__$1$$=$APP.$cljs$core$__destructure_map$$($p__54808$$),$id$jscomp$400$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54809__$1$$,$APP.$cljs$cst$266$id$$);typeof $app$main$data$profile$delete_access_token_54810$$==="undefined"&&($app$main$data$profile$delete_access_token_54810$$=function($p__54808$jscomp$1$$,$map__54809$jscomp$1$$,$params$jscomp$198$$,$id$jscomp$401$$,$meta54811$$){this.$p__54808$=$p__54808$jscomp$1$$;
this.$map__54809$=$map__54809$jscomp$1$$;this.params=$params$jscomp$198$$;this.id=$id$jscomp$401$$;this.$meta54811$=$meta54811$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$delete_access_token_54810$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$delete_access_token_54810$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3232$app_DOT_main_DOT_data_DOT_profile_SLASH_delete_access_token$$},
$app$main$data$profile$delete_access_token_54810$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54812$$,$meta54811__$1$$){return new $app$main$data$profile$delete_access_token_54810$$(this.$p__54808$,this.$map__54809$,this.params,this.id,$meta54811__$1$$)},$app$main$data$profile$delete_access_token_54810$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54811$},$app$main$data$profile$delete_access_token_54810$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$profile$delete_access_token_54810$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $map__54813_on_success$jscomp$9$$=$APP.$cljs$core$meta$$(this.params),$map__54813__$1_on_error$jscomp$14$$=$APP.$cljs$core$__destructure_map$$($map__54813_on_success$jscomp$9$$);$map__54813_on_success$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54813__$1_on_error$jscomp$14$$,$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);$map__54813__$1_on_error$jscomp$14$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54813__$1_on_error$jscomp$14$$,$APP.$cljs$cst$1281$on_error$$,$APP.$beicon$v2$core$throw$0$$);return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54813__$1_on_error$jscomp$14$$,$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54813_on_success$jscomp$9$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3233$delete_access_token$$,this.params)))});return new $app$main$data$profile$delete_access_token_54810$$($p__54808$$,
$map__54809__$1$$,$map__54809__$1$$,$id$jscomp$400$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$create_access_token$$=function($p__54800$$){var $map__54801__$1$$=$APP.$cljs$core$__destructure_map$$($p__54800$$);typeof $app$main$data$profile$create_access_token_54802$$==="undefined"&&($app$main$data$profile$create_access_token_54802$$=function($p__54800$jscomp$1$$,$map__54801$jscomp$1$$,$params$jscomp$196$$,$meta54803$$){this.$p__54800$=$p__54800$jscomp$1$$;this.$map__54801$=$map__54801$jscomp$1$$;this.params=$params$jscomp$196$$;this.$meta54803$=$meta54803$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$create_access_token_54802$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$create_access_token_54802$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3230$app_DOT_main_DOT_data_DOT_profile_SLASH_create_access_token$$},$app$main$data$profile$create_access_token_54802$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54804$$,$meta54803__$1$$){return new $app$main$data$profile$create_access_token_54802$$(this.$p__54800$,
this.$map__54801$,this.params,$meta54803__$1$$)},$app$main$data$profile$create_access_token_54802$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54803$},$app$main$data$profile$create_access_token_54802$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$create_access_token_54802$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $map__54807_on_success$jscomp$8$$=$APP.$cljs$core$meta$$(this.params),$map__54807__$1_on_error$jscomp$13$$=
$APP.$cljs$core$__destructure_map$$($map__54807_on_success$jscomp$8$$);$map__54807_on_success$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54807__$1_on_error$jscomp$13$$,$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);$map__54807__$1_on_error$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54807__$1_on_error$jscomp$13$$,$APP.$cljs$cst$1281$on_error$$,$APP.$beicon$v2$core$throw$0$$);return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54807__$1_on_error$jscomp$13$$,
$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54807_on_success$jscomp$8$$,$APP.$beicon$v2$core$map$$($app$main$data$profile$access_token_created$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3231$create_access_token$$,this.params))))});return new $app$main$data$profile$create_access_token_54802$$($p__54800$$,$map__54801__$1$$,$map__54801__$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$request_email_change$$=function($p__54663$$){var $map__54664__$1$$=$APP.$cljs$core$__destructure_map$$($p__54663$$),$email$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54664__$1$$,$APP.$cljs$cst$3176$email$$);typeof $app$main$data$profile$request_email_change_54665$$==="undefined"&&($app$main$data$profile$request_email_change_54665$$=function($p__54663$jscomp$1$$,$map__54664$jscomp$1$$,$data$jscomp$280$$,$email$jscomp$1$$,$meta54666$$){this.$p__54663$=$p__54663$jscomp$1$$;
this.$map__54664$=$map__54664$jscomp$1$$;this.data=$data$jscomp$280$$;this.email=$email$jscomp$1$$;this.$meta54666$=$meta54666$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$request_email_change_54665$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$request_email_change_54665$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3191$app_DOT_main_DOT_data_DOT_profile_SLASH_request_email_change$$},
$app$main$data$profile$request_email_change_54665$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54667$$,$meta54666__$1$$){return new $app$main$data$profile$request_email_change_54665$$(this.$p__54663$,this.$map__54664$,this.data,this.email,$meta54666__$1$$)},$app$main$data$profile$request_email_change_54665$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54666$},$app$main$data$profile$request_email_change_54665$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$profile$request_email_change_54665$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3176$email$$,this.email],null)},$app$main$data$profile$request_email_change_54665$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$request_email_change_54665$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $map__54671_on_error$jscomp$7$$=$APP.$cljs$core$meta$$(this.data),
$map__54671__$1_on_success$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($map__54671_on_error$jscomp$7$$);$map__54671_on_error$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54671__$1_on_success$jscomp$2$$,$APP.$cljs$cst$1281$on_error$$,$APP.$cljs$core$identity$$);$map__54671__$1_on_success$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54671__$1_on_success$jscomp$2$$,$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54671_on_error$jscomp$7$$,
$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54671__$1_on_success$jscomp$2$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3192$request_email_change$$,this.data)))});return new $app$main$data$profile$request_email_change_54665$$($p__54663$$,$map__54664__$1$$,$map__54664__$1$$,$email$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$components$forms$textarea$$=function($label$jscomp$23_map__71724_props_71723$$){$label$jscomp$23_map__71724_props_71723$$=$APP.$rumext$v2$util$wrap_props$$($label$jscomp$23_map__71724_props_71723$$);var $map__71724__$1_props__$1$jscomp$52$$=$APP.$cljs$core$__destructure_map$$($label$jscomp$23_map__71724_props_71723$$);$label$jscomp$23_map__71724_props_71723$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71724__$1_props__$1$jscomp$52$$,$APP.$cljs$cst$2245$label$$);var $disabled$jscomp$6_klass$jscomp$3$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71724__$1_props__$1$jscomp$52$$,$APP.$cljs$cst$2632$disabled$$),$form$jscomp$161_touched_QMARK_$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71724__$1_props__$1$jscomp$52$$,$APP.$cljs$cst$179$form$$),$hint$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71724__$1_props__$1$jscomp$52$$,$APP.$cljs$cst$273$hint$$),$trim$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71724__$1_props__$1$jscomp$52$$,
$APP.$cljs$cst$3557$trim$$),$input_name$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71724__$1_props__$1$jscomp$52$$,$APP.$cljs$cst$723$name$$),$form__$1$jscomp$7$$=$APP.$cljs$core$truth_$$($form$jscomp$161_touched_QMARK_$jscomp$3$$)?$form$jscomp$161_touched_QMARK_$jscomp$3$$:(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$components$forms$form_ctx$$),$focus_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$form$jscomp$161_touched_QMARK_$jscomp$3$$=
function(){var $and__5023__auto__$jscomp$596$$=$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form__$1$jscomp$7$$)),$input_name$jscomp$1$$);return $and__5023__auto__$jscomp$596$$?$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form__$1$jscomp$7$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$1$$],
null)):$and__5023__auto__$jscomp$596$$}();var $error$jscomp$82$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form__$1$jscomp$7$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$input_name$jscomp$1$$],null)),$value$jscomp$719$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form__$1$jscomp$7$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$142$data$$,$input_name$jscomp$1$$],null),"");$disabled$jscomp$6_klass$jscomp$3$$=$APP.$app$util$dom$classnames$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4873$focus$$,$APP.$cljs$core$_deref$$($focus_QMARK_$jscomp$1$$),$APP.$cljs$cst$4856$valid$$,$APP.$cljs$core$truth_$$($form$jscomp$161_touched_QMARK_$jscomp$3$$)?$APP.$cljs$core$not$$($error$jscomp$82$$):$form$jscomp$161_touched_QMARK_$jscomp$3$$,$APP.$cljs$cst$4874$invalid$$,
$APP.$cljs$core$truth_$$($form$jscomp$161_touched_QMARK_$jscomp$3$$)?$error$jscomp$82$$:$form$jscomp$161_touched_QMARK_$jscomp$3$$,$APP.$cljs$cst$2632$disabled$$,$disabled$jscomp$6_klass$jscomp$3$$]));$map__71724__$1_props__$1$jscomp$52$$=$APP.$rumext$v2$util$map__GT_props$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__71724__$1_props__$1$jscomp$52$$,$APP.$cljs$cst$4866$help_icon$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$179$form$$,$APP.$cljs$cst$3557$trim$$])),$APP.$cljs$cst$260$value$$,$value$jscomp$719$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4869$on_focus$$,function(){return $APP.$cljs$core$reset_BANG_$$($focus_QMARK_$jscomp$1$$,!0)},$APP.$cljs$cst$4870$on_blur$$,function(){$APP.$cljs$core$reset_BANG_$$($focus_QMARK_$jscomp$1$$,!1);return $APP.$cljs$core$truth_$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form__$1$jscomp$7$$),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$1$$],null)))?null:$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form__$1$jscomp$7$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$1$$],null),!0)},$APP.$cljs$cst$4041$on_change$$,function($event$jscomp$172$$){return $APP.$app$util$forms$on_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form__$1$jscomp$7$$,
$input_name$jscomp$1$$,$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$172$$)),$trim$jscomp$2$$)}])));return(0,$APP.$rumext$v2$jsxs$$)("div",{className:""+($disabled$jscomp$6_klass$jscomp$3$$??"")+" main_ui_components_forms__textarea-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{className:"main_ui_components_forms__textarea-label",children:$label$jscomp$23_map__71724_props_71723$$}),(0,$APP.$rumext$v2$create_element$$)("textarea",$map__71724__$1_props__$1$jscomp$52$$),
$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($form$jscomp$161_touched_QMARK_$jscomp$3$$)?$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$82$$):$form$jscomp$161_touched_QMARK_$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_components_forms__error",children:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$82$$)}):$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($form$jscomp$161_touched_QMARK_$jscomp$3$$)?$APP.$cljs$cst$271$code$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$82$$):
$form$jscomp$161_touched_QMARK_$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_components_forms__error",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$271$code$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$82$$))}):typeof $hint$jscomp$13$$==="string"?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_components_forms__hint",children:$hint$jscomp$13$$}):null]})};
$app$main$data$profile$update_photo$$=function($file$jscomp$40$$){typeof $app$main$data$profile$update_photo_54716$$==="undefined"&&($app$main$data$profile$update_photo_54716$$=function($file$jscomp$41$$,$meta54717$$){this.file=$file$jscomp$41$$;this.$meta54717$=$meta54717$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$update_photo_54716$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_photo_54716$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3213$app_DOT_main_DOT_data_DOT_profile_SLASH_update_photo$$},$app$main$data$profile$update_photo_54716$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54718$$,$meta54717__$1$$){return new $app$main$data$profile$update_photo_54716$$(this.file,$meta54717__$1$$)},$app$main$data$profile$update_photo_54716$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54717$},$app$main$data$profile$update_photo_54716$$.prototype.$app$main$data$event$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_photo_54716$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return $APP.$cljs$core$PersistentArrayMap$EMPTY$$},$app$main$data$profile$update_photo_54716$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_photo_54716$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){$APP.$app$main$data$media$notify_start_loading$$();return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__54712_SHARP_$$){$APP.$app$main$data$media$notify_finished_loading$$();
return $APP.$app$main$data$media$process_error$$($p1__54712_SHARP_$$)},$APP.$beicon$v2$core$map$$($APP.$cljs$core$constantly$$($APP.$app$main$data$profile$refresh_profile$$()),$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$media$notify_finished_loading$$,$APP.$beicon$v2$core$mapcat$$(function($p1__54713_SHARP_$$){return $APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2243$update_profile_photo$$,$p1__54713_SHARP_$$)},$APP.$beicon$v2$core$map$$(function($file__$1$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$208$file$$,$file__$1$$],null)},$APP.$beicon$v2$core$map$$($APP.$app$main$data$media$validate_file$$,(0,$APP.$beicon$v2$core$of$$)(this.file)))))))});return new $app$main$data$profile$update_photo_54716$$($file$jscomp$40$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$delete_subscription$$=function(){return $APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1216$subscriptions$$)?$APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){return $APP.$beicon$v2$core$empty$$()},$APP.$beicon$v2$core$map$$($APP.$cljs$core$constantly$$(null),$APP.$app$util$http$fetch$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1563$uri$$,"/payments/subscriptions/delete",$APP.$cljs$cst$1567$credentials$$,
"include",$APP.$cljs$cst$1562$method$$,$APP.$cljs$cst$1283$get$$],null)))):$APP.$beicon$v2$core$empty$$()};
$app$main$data$profile$request_account_deletion$$=function(){var $params$jscomp$193$$=$APP.$cljs$core$with_meta$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1281$on_error$$,$app$main$ui$settings$delete_account$on_error$$],null));typeof $app$main$data$profile$request_account_deletion_54746$$==="undefined"&&($app$main$data$profile$request_account_deletion_54746$$=function($params$jscomp$194$$,$meta54747$$){this.params=$params$jscomp$194$$;
this.$meta54747$=$meta54747$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$request_account_deletion_54746$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$request_account_deletion_54746$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3219$app_DOT_main_DOT_data_DOT_profile_SLASH_request_account_deletion$$},$app$main$data$profile$request_account_deletion_54746$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_54748$$,$meta54747__$1$$){return new $app$main$data$profile$request_account_deletion_54746$$(this.params,$meta54747__$1$$)},$app$main$data$profile$request_account_deletion_54746$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54747$},$app$main$data$profile$request_account_deletion_54746$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$request_account_deletion_54746$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){var $self__$jscomp$3544$$=this,$map__54751_on_error$jscomp$10$$=$APP.$cljs$core$meta$$($self__$jscomp$3544$$.params),$map__54751__$1_on_success$jscomp$5$$=$APP.$cljs$core$__destructure_map$$($map__54751_on_error$jscomp$10$$);$map__54751_on_error$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54751__$1_on_success$jscomp$5$$,$APP.$cljs$cst$1281$on_error$$,$APP.$beicon$v2$core$throw$0$$);$map__54751__$1_on_success$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54751__$1_on_success$jscomp$5$$,
$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);return $APP.$beicon$v2$core$concat$$($app$main$data$profile$delete_subscription$$(),$APP.$beicon$v2$core$delay_at_least$$(300,$APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54751_on_error$jscomp$10$$,$APP.$beicon$v2$core$map$$(function(){return $APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3218$app_DOT_main_DOT_data_DOT_profile_SLASH_profile_deleted$$,$self__$jscomp$3544$$.params)},
$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54751__$1_on_success$jscomp$5$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3220$delete_profile$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$))))))});return new $app$main$data$profile$request_account_deletion_54746$$($params$jscomp$193$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$update_password$$=function($data$jscomp$281_data__$1$jscomp$11$$){$data$jscomp$281_data__$1$jscomp$11$$=(0,$APP.$app$main$data$profile$check_update_password$$)($data$jscomp$281_data__$1$jscomp$11$$);typeof $app$main$data$profile$update_password_54678$$==="undefined"&&($app$main$data$profile$update_password_54678$$=function($data$jscomp$282$$,$meta54679$$){this.data=$data$jscomp$282$$;this.$meta54679$=$meta54679$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$profile$update_password_54678$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_password_54678$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3198$app_DOT_main_DOT_data_DOT_profile_SLASH_update_password$$},$app$main$data$profile$update_password_54678$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54681$$,$meta54679__$1$$){return new $app$main$data$profile$update_password_54678$$(this.data,
$meta54679__$1$$)},$app$main$data$profile$update_password_54678$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54679$},$app$main$data$profile$update_password_54678$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_password_54678$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return $APP.$cljs$core$PersistentArrayMap$EMPTY$$},$app$main$data$profile$update_password_54678$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_password_54678$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $map__54684_map__54684__$1_on_success$jscomp$3$$=$APP.$cljs$core$meta$$(this.data);$map__54684_map__54684__$1_on_success$jscomp$3$$=$APP.$cljs$core$__destructure_map$$($map__54684_map__54684__$1_on_success$jscomp$3$$);var $on_error$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54684_map__54684__$1_on_success$jscomp$3$$,$APP.$cljs$cst$1281$on_error$$,
$APP.$cljs$core$identity$$);$map__54684_map__54684__$1_on_success$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__54684_map__54684__$1_on_success$jscomp$3$$,$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);var $params$jscomp$192$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1133$old_password$$,$APP.$cljs$cst$3197$password_old$$.$cljs$core$IFn$_invoke$arity$1$(this.data),$APP.$cljs$cst$749$password$$,$APP.$cljs$cst$3195$password_1$$.$cljs$core$IFn$_invoke$arity$1$(this.data)],
null);return $APP.$beicon$v2$core$ignore$$($APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($err$jscomp$34$$){$on_error$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$?$on_error$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$34$$):$on_error$jscomp$8$$($err$jscomp$34$$);return $APP.$beicon$v2$core$empty$$()},$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($map__54684_map__54684__$1_on_success$jscomp$3$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3199$update_profile_password$$,
$params$jscomp$192$$))))});return new $app$main$data$profile$update_password_54678$$($data$jscomp$281_data__$1$jscomp$11$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$update_notifications$$=function($options$jscomp$490_options__$1$jscomp$68$$){$options$jscomp$490_options__$1$jscomp$68$$=(0,$APP.$app$main$data$profile$check_update_notifications_params$$)($options$jscomp$490_options__$1$jscomp$68$$);typeof $app$main$data$profile$update_notifications_54688$$==="undefined"&&($app$main$data$profile$update_notifications_54688$$=function($options$jscomp$491$$,$meta54689$$){this.options=$options$jscomp$491$$;this.$meta54689$=$meta54689$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$profile$update_notifications_54688$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_notifications_54688$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3203$app_DOT_main_DOT_data_DOT_profile_SLASH_update_notifications$$},$app$main$data$profile$update_notifications_54688$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54690$$,$meta54689__$1$$){return new $app$main$data$profile$update_notifications_54688$$(this.options,
$meta54689__$1$$)},$app$main$data$profile$update_notifications_54688$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54689$},$app$main$data$profile$update_notifications_54688$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_notifications_54688$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return $APP.$cljs$core$PersistentArrayMap$EMPTY$$},$app$main$data$profile$update_notifications_54688$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_notifications_54688$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1669$$,$state$jscomp$193$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$193$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1899$profile$$,$APP.$cljs$cst$573$props$$],null),$APP.$cljs$core$assoc$$,$APP.$cljs$cst$3204$notifications$$,this.options)},
$app$main$data$profile$update_notifications_54688$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_notifications_54688$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$(function(){return $APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.notifications.notifications-saved"))},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3205$update_profile_notifications$$,
this.options))});return new $app$main$data$profile$update_notifications_54688$$($options$jscomp$490_options__$1$jscomp$68$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$profile$update_profile$$=function($profile$jscomp$9_profile__$1$jscomp$2$$){$profile$jscomp$9_profile__$1$jscomp$2$$=(0,$APP.$app$main$data$profile$check_profile$$)($profile$jscomp$9_profile__$1$jscomp$2$$);typeof $app$main$data$profile$update_profile_54649$$==="undefined"&&($app$main$data$profile$update_profile_54649$$=function($profile$jscomp$10$$,$meta54650$$){this.profile=$profile$jscomp$10$$;this.$meta54650$=$meta54650$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$profile$update_profile_54649$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_profile_54649$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3189$app_DOT_main_DOT_data_DOT_profile_SLASH_update_profile$$},$app$main$data$profile$update_profile_54649$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54651$$,$meta54650__$1$$){return new $app$main$data$profile$update_profile_54649$$(this.profile,
$meta54650__$1$$)},$app$main$data$profile$update_profile_54649$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54650$},$app$main$data$profile$update_profile_54649$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$profile$update_profile_54649$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1660_profile_SINGLEQUOTE_$$,$profile__$1$jscomp$3_state$jscomp$190$$){$_$jscomp$1660_profile_SINGLEQUOTE_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($profile__$1$jscomp$3_state$jscomp$190$$,
$APP.$cljs$cst$1899$profile$$);$profile__$1$jscomp$3_state$jscomp$190$$=$APP.$app$common$data$deep_merge$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1660_profile_SINGLEQUOTE_$$,$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$(this.profile,$APP.$cljs$cst$573$props$$));return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$profile$set_profile$$($profile__$1$jscomp$3_state$jscomp$190$$)),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3177$theme$$.$cljs$core$IFn$_invoke$arity$1$($profile__$1$jscomp$3_state$jscomp$190$$),
$APP.$cljs$cst$3177$theme$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$1660_profile_SINGLEQUOTE_$$))?(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"activate-theme",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"settings",$APP.$cljs$cst$3177$theme$$,$APP.$cljs$cst$3177$theme$$.$cljs$core$IFn$_invoke$arity$1$($profile__$1$jscomp$3_state$jscomp$190$$)],
null))):null)});return new $app$main$data$profile$update_profile_54649$$($profile$jscomp$9_profile__$1$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$settings$access_tokens$access_token_modal$$=function(){var $form$jscomp$213$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$4857$initial$$,$app$main$ui$settings$access_tokens$initial_data$$,$APP.$cljs$cst$296$schema$$,$app$main$ui$settings$access_tokens$schema_COLON_form$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$4857$initial$$,$app$main$ui$settings$access_tokens$initial_data$$,$APP.$cljs$cst$296$schema$$,
$app$main$ui$settings$access_tokens$schema_COLON_form$$),$created$jscomp$1$$=$APP.$rumext$v2$deref$$($app$main$ui$settings$access_tokens$token_created_ref$$),$created_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$on_success$jscomp$59$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($created$jscomp$1$$)],function(){var $message$jscomp$123$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.create.success");
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$profile$fetch_access_tokens$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$02$$($message$jscomp$123$$),$APP.$cljs$core$reset_BANG_$$($created_QMARK_$$,!0)]))}),$on_close$jscomp$51$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($created$jscomp$1$$)],function(){$APP.$cljs$core$reset_BANG_$$($created_QMARK_$$,
!1);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$hide$$())}),$on_error$jscomp$75$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.generic")),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide$$()]))}),
$on_submit$jscomp$19$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($form__$1$jscomp$23_mdata$jscomp$30$$){var $G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$=$APP.$cljs$cst$4855$clean_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form__$1$jscomp$23_mdata$jscomp$30$$));$form__$1$jscomp$23_mdata$jscomp$30$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_success$jscomp$59$$,
$form__$1$jscomp$23_mdata$jscomp$30$$),$APP.$cljs$cst$1281$on_error$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_error$jscomp$75$$,$form__$1$jscomp$23_mdata$jscomp$30$$)],null);var $expiration$jscomp$1$$=$cljs$cst$6392$expiration_date$$.$cljs$core$IFn$_invoke$arity$1$($G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$);$G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$),
$cljs$cst$6393$perms$$,$cljs$cst$6393$perms$$.$cljs$core$IFn$_invoke$arity$1$($G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$)],null);$G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("never",$expiration$jscomp$1$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$,$cljs$cst$6394$expiration$$,$expiration$jscomp$1$$):$G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$;
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$create_access_token$$($APP.$cljs$core$with_meta$$($G__89699$jscomp$inline_10228_cdata$jscomp$5_params$jscomp$462$$,$form__$1$jscomp$23_mdata$jscomp$30$$)))}),$copy_token$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($created$jscomp$1$$)],function($event$jscomp$728$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$728$$);$APP.$app$util$clipboard$to_clipboard$$($APP.$cljs$cst$1134$token$$.$cljs$core$IFn$_invoke$arity$1$($created$jscomp$1$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$1159$info$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.copied-success"),$APP.$cljs$cst$2310$timeout$$,7E3],null)))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__modal-overlay",
children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__modal-container",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$forms$form$$,{form:$form$jscomp$213$$,"on-submit":$on_submit$jscomp$19$$,children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_access_tokens__modal-header",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_settings_access_tokens__modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.create-access-token.title")}),
(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_close$jscomp$51$$,className:"main_ui_settings_access_tokens__modal-close-btn",children:$app$main$ui$settings$access_tokens$close_icon$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_access_tokens__modal-content",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"text","auto-focus?":!0,form:$form$jscomp$213$$,
name:$APP.$cljs$cst$723$name$$,disabled:$APP.$cljs$core$_deref$$($created_QMARK_$$),label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.create-access-token.name.label"),"show-success?":!0,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.create-access-token.name.placeholder")})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_access_tokens__fields-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__select-title",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.create-access-token.expiration-date.label")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$select$$,{options:new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.expiration-never"),$APP.$cljs$cst$260$value$$,"never",
$APP.$cljs$cst$300$key$$,"never"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.expiration-30-days"),$APP.$cljs$cst$260$value$$,"720h",$APP.$cljs$cst$300$key$$,"720h"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.expiration-60-days"),$APP.$cljs$cst$260$value$$,"1440h",
$APP.$cljs$cst$300$key$$,"1440h"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.expiration-90-days"),$APP.$cljs$cst$260$value$$,"2160h",$APP.$cljs$cst$300$key$$,"2160h"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.expiration-180-days"),$APP.$cljs$cst$260$value$$,
"4320h",$APP.$cljs$cst$300$key$$,"4320h"],null)],null),"default":"never",disabled:$APP.$cljs$core$_deref$$($created_QMARK_$$),name:$cljs$cst$6392$expiration_date$$}),$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($created_QMARK_$$))?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_access_tokens__token-created-info",children:$APP.$cljs$core$truth_$$($cljs$cst$6395$expires_at$$.$cljs$core$IFn$_invoke$arity$1$($created$jscomp$1$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.access-tokens.token-will-expire",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$6395$expires_at$$.$cljs$core$IFn$_invoke$arity$1$($created$jscomp$1$$),"PPP")])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.token-will-not-expire")}):null]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__fields-row",children:$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($created_QMARK_$$))?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_access_tokens__custon-input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",value:$APP.$cljs$cst$1134$token$$.$cljs$core$IFn$_invoke$arity$2$($created$jscomp$1$$,""),readOnly:!0,className:"main_ui_settings_access_tokens__custom-input-token"}),(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.create-access-token.copy-token"),onClick:$copy_token$$,className:"main_ui_settings_access_tokens__copy-btn",
children:$app$main$ui$settings$access_tokens$clipboard_icon$$})]}):null})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__modal-footer",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__action-buttons",children:$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($created_QMARK_$$))?(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),onClick:$APP.$app$main$data$modal$hide_BANG_$$,
className:"main_ui_settings_access_tokens__cancel-button"}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel"),onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_settings_access_tokens__cancel-button"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,{"large?":!1,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.create-access-token.submit-label")})]})})})]})})})};
$app$main$ui$settings$access_tokens$access_tokens_hero$$=function(){var $on_click$jscomp$75$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$6396$access_token$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_access_tokens__access-tokens-hero",children:[(0,$APP.$rumext$v2$jsx$$)("h2",
{className:"main_ui_settings_access_tokens__hero-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.personal")}),(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_access_tokens__hero-desc",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.personal.description")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_click$jscomp$75$$,className:"main_ui_settings_access_tokens__hero-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.create")})]})};
$app$main$ui$settings$access_tokens$access_token_actions$$=function($map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$){$map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$=$APP.$rumext$v2$util$wrap_props$$($map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$);$map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$=$APP.$cljs$core$__destructure_map$$($map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$);var $on_delete$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$,
$APP.$cljs$cst$5469$on_delete$$),$local$jscomp$41$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4738$menu_open$$,!1],null));$map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$=$APP.$cljs$cst$4738$menu_open$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$41$$));var $options$jscomp$636$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_delete$jscomp$20$$)],
function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete"),$APP.$cljs$cst$266$id$$,"access-token-delete",$APP.$cljs$cst$2359$handler$$,$on_delete$jscomp$20$$],null)],null)}),$menu_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(),$on_menu_close$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($local$jscomp$41$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!1)}),$on_menu_click$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$729$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$729$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($local$jscomp$41$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!0)}),$on_keydown$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_menu_click$jscomp$9$$)],
function($event$jscomp$730$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$730$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$730$$),$on_menu_click$jscomp$9$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$9$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$730$$):$on_menu_click$jscomp$9$$($event$jscomp$730$$)):null});return(0,$APP.$rumext$v2$jsxs$$)("button",{tabIndex:"0",ref:$menu_ref$jscomp$1$$,onClick:$on_menu_click$jscomp$9$$,onKeyDown:$on_keydown$jscomp$3$$,
className:"main_ui_settings_access_tokens__menu-btn",children:[$app$main$ui$settings$access_tokens$menu_icon$$,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$context_menu_a11y$context_menu_STAR_$$,{onClose:$on_menu_close$jscomp$8$$,show:$map__89706_map__89706__$1_props_89705_show_QMARK_$jscomp$7$$,fixed:!0,minWidth:!0,top:"auto",left:"auto",options:$options$jscomp$636$$})]})};
$app$main$ui$settings$access_tokens$access_tokens_page$$=function(){var $tokens$jscomp$76$$=$APP.$rumext$v2$deref$$($app$main$ui$settings$access_tokens$tokens_ref$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){$APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("title.settings.access-tokens"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$fetch_access_tokens$$())});return(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_settings_access_tokens__dashboard-access-tokens",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$access_tokens$access_tokens_hero$$,{}),$APP.$cljs$core$empty_QMARK_$$($tokens$jscomp$76$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_access_tokens__access-tokens-empty",children:[(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.empty.no-access-tokens")}),(0,$APP.$rumext$v2$jsx$$)("div",
{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.empty.add-one")})]}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__dashboard-table",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__table-rows",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$274$$,$token$jscomp$209$$){$out_arr__44057__auto__$jscomp$274$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$access_tokens$access_token_item$$,
{token:$token$jscomp$209$$},$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$209$$)));return $out_arr__44057__auto__$jscomp$274$$},[],$tokens$jscomp$76$$)})})]})};
$app$main$ui$settings$change_email$on_error$$=function($form$jscomp$214$$,$cause$jscomp$101$$){var $map__89700__$1$$=$APP.$cljs$core$__destructure_map$$($APP.$cljs$core$ex_data$$($cause$jscomp$101$$)),$G__89701$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89700__$1$$,$APP.$cljs$cst$271$code$$);switch($G__89701$$ instanceof $APP.$cljs$core$Keyword$$?$G__89701$$.$fqn$:null){case "email-already-exists":return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$214$$,
function($data$jscomp$526$$){var $error__$1$jscomp$7$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.email-already-exists")],null);return $APP.$cljs$core$assoc_in$$($data$jscomp$526$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$cljs$cst$6397$email_1$$],null),$error__$1$jscomp$7$$)});case "profile-is-muted":return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.profile-is-muted")));
case "email-has-permanent-bounces":case "email-has-complaints":return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("errors.email-has-permanent-bounces",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3176$email$$.$cljs$core$IFn$_invoke$arity$1$($map__89700__$1$$)]))));default:return $APP.$beicon$v2$core$throw$0$$($cause$jscomp$101$$)}};
$app$main$ui$settings$change_email$on_success$$=function($message$jscomp$124_profile$jscomp$79$$,$data$jscomp$527$$){if($APP.$cljs$core$truth_$$($cljs$cst$6398$changed$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$527$$)))return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$profile$refresh_profile$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide$$()]));$message$jscomp$124_profile$jscomp$79$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("notifications.validation-email-sent",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3176$email$$.$cljs$core$IFn$_invoke$arity$1$($message$jscomp$124_profile$jscomp$79$$)]));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$notifications$info$cljs$0core$0IFn$0_invoke$0arity$02$$($message$jscomp$124_profile$jscomp$79$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide$$()]))};
$app$main$ui$settings$change_email$on_submit$$=function($profile$jscomp$80$$,$form$jscomp$215$$){var $params$jscomp$464$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3176$email$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$215$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$cljs$cst$6397$email_1$$],null))],null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$request_email_change$$($APP.$cljs$core$with_meta$$($params$jscomp$464$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1281$on_error$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$settings$change_email$on_error$$,$form$jscomp$215$$),$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$settings$change_email$on_success$$,$profile$jscomp$80$$)],null))))};
$app$main$ui$settings$change_email$change_email_modal$$=function(){var $profile$jscomp$81$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$form$jscomp$216$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$change_email$schema_COLON_email_change_form$$,$APP.$cljs$cst$4857$initial$$,$profile$jscomp$81$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,
$app$main$ui$settings$change_email$schema_COLON_email_change_form$$,$APP.$cljs$cst$4857$initial$$,$profile$jscomp$81$$),$on_submit$jscomp$20$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($profile$jscomp$81$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$settings$change_email$on_submit$$,$profile$jscomp$81$$));return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_change_email__modal-overlay",children:(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_settings_change_email__modal-container",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$forms$form$$,{form:$form$jscomp$216$$,"on-submit":$on_submit$jscomp$20$$,children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_change_email__modal-header",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{"data-testid":"change-email-title",className:"main_ui_settings_change_email__modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.change-email.title")}),
(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_settings_change_email__modal-close-btn",children:$APP.$app$main$ui$icons$close$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_change_email__modal-content",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$notifications$context_notification$context_notification$$,{level:$APP.$cljs$cst$1159$info$$,content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("modals.change-email.info",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3176$email$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$81$$)]))}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_change_email__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"email",name:$cljs$cst$6397$email_1$$,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.change-email.new-email"),trim:!0,"show-success?":!0})}),(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_settings_change_email__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"email",name:$cljs$cst$6399$email_2$$,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.change-email.confirm-email"),trim:!0,"show-success?":!0})})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_change_email__modal-footer",children:(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"change-email-submit",className:"main_ui_settings_change_email__action-buttons",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.change-email.submit")})})})]})})})};
$app$main$ui$settings$delete_account$on_error$$=function($cause$jscomp$102_msg$jscomp$51$$){var $code$jscomp$59$$=$APP.$cljs$cst$271$code$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$ex_data$$($cause$jscomp$102_msg$jscomp$51$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$6400$owner_teams_with_people$$,$code$jscomp$59$$)?($cause$jscomp$102_msg$jscomp$51$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("notifications.profile-deletion-not-allowed"),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$error$$($cause$jscomp$102_msg$jscomp$51$$))):
$APP.$beicon$v2$core$throw$0$$($cause$jscomp$102_msg$jscomp$51$$)};
$app$main$ui$settings$delete_account$delete_account_modal$$=function(){var $on_accept$jscomp$20$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$modal$hide$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$profile$request_account_deletion$$()]))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_delete_account__modal-overlay",
children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_delete_account__modal-container",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_delete_account__modal-header",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_settings_delete_account__modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-account.title")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_settings_delete_account__modal-close-btn",
children:$APP.$app$main$ui$icons$close$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_delete_account__modal-content",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$notifications$context_notification$context_notification$$,{level:$APP.$cljs$cst$2300$warning$$,content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-account.info")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_delete_account__modal-footer",children:(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_settings_delete_account__action-buttons",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_settings_delete_account__cancel-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-account.cancel")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_accept$jscomp$20$$,"data-testid":"delete-account-btn",className:"main_ui_settings_delete_account__accept-button main_ui_settings_delete_account__danger",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-account.confirm")})]})})]})})};
$app$main$ui$settings$feedback$feedback_form_STAR_$$=function($on_submit$jscomp$21_profile$jscomp$82_props_89716$$){var $error_report$$=$on_submit$jscomp$21_profile$jscomp$82_props_89716$$.errorReport,$type$jscomp$718$$=$on_submit$jscomp$21_profile$jscomp$82_props_89716$$.type,$error_href$jscomp$1$$=$on_submit$jscomp$21_profile$jscomp$82_props_89716$$.errorHref;$on_submit$jscomp$21_profile$jscomp$82_props_89716$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$);var $initial$jscomp$41_on_download$jscomp$3$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($error_href$jscomp$1$$),$APP.$rumext$v2$adapt$$($error_report$$)],function(){return $APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$cljs$cst$6402$subject$$,"",$APP.$cljs$cst$139$type$$,$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$718$$,""),$APP.$cljs$cst$1621$content$$,"",$APP.$cljs$cst$5160$error_href$$,$error_href$jscomp$1$$,
$cljs$cst$6403$error_report$$,$error_report$$],null))}),$form$jscomp$217$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$feedback$schema_COLON_feedback_form$$,$APP.$cljs$cst$4857$initial$$,$initial$jscomp$41_on_download$jscomp$3$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$feedback$schema_COLON_feedback_form$$,$APP.$cljs$cst$4857$initial$$,
$initial$jscomp$41_on_download$jscomp$3$$),$loading$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$report$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($error_report$$)],function(){return $APP.$cljs$core$truth_$$($error_report$$)?$APP.$app$util$webapi$create_blob$cljs$0core$0IFn$0_invoke$0arity$02$$($error_report$$,"text/plain"):null});$initial$jscomp$41_on_download$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($report$jscomp$5$$)],
function($event$jscomp$731$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$731$$);var $uri$jscomp$112$$=$APP.$app$util$webapi$create_uri$$($report$jscomp$5$$);$APP.$app$util$dom$trigger_download_uri$$("report","text/plain",$uri$jscomp$112$$);return $APP.$app$util$timers$schedule_on_idle$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$webapi$revoke_uri$$($uri$jscomp$112$$)})});var $on_succes$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_submit$jscomp$21_profile$jscomp$82_props_89716$$)],
function(){$APP.$cljs$core$reset_BANG_$$($loading$$,!1);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.feedback-sent")));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$217$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$142$data$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1610$touched$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$cst$568$errors$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$]))}),$on_error$jscomp$76$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_submit$jscomp$21_profile$jscomp$82_props_89716$$)],function($code$jscomp$60_map__89718__$1_p__89717$$){$code$jscomp$60_map__89718__$1_p__89717$$=$APP.$cljs$core$__destructure_map$$($code$jscomp$60_map__89718__$1_p__89717$$);$code$jscomp$60_map__89718__$1_p__89717$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($code$jscomp$60_map__89718__$1_p__89717$$,
$APP.$cljs$cst$271$code$$);$APP.$cljs$core$reset_BANG_$$($loading$$,!1);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($code$jscomp$60_map__89718__$1_p__89717$$,$cljs$cst$6404$feedback_disabled$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.feedback-disabled"))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.generic")))});
$on_submit$jscomp$21_profile$jscomp$82_props_89716$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_submit$jscomp$21_profile$jscomp$82_props_89716$$)],function($data$jscomp$529_form__$1$jscomp$24$$){$APP.$cljs$core$reset_BANG_$$($loading$$,!0);$data$jscomp$529_form__$1$jscomp$24$$=$APP.$cljs$cst$4855$clean_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($data$jscomp$529_form__$1$jscomp$24$$));return $APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($on_succes$$,
$on_error$jscomp$76$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$6405$send_user_feedback$$,$data$jscomp$529_form__$1$jscomp$24$$))});return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$forms$form$$,{"class":"main_ui_settings_feedback__feedback-form","on-submit":$on_submit$jscomp$21_profile$jscomp$82_props_89716$$,form:$form$jscomp$217$$,children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_settings_feedback__field-title main_ui_settings_feedback__feedback-title",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.title-contact-us")}),(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_feedback__field-text main_ui_settings_feedback__feedback-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.subtitle")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_feedback__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.subject"),
name:$cljs$cst$6402$subject$$,"show-success?":!0})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_feedback__fields-row",children:[(0,$APP.$rumext$v2$jsx$$)("label",{className:"main_ui_settings_feedback__field-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.type")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$select$$,{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.type"),name:$APP.$cljs$cst$139$type$$,options:new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.type.idea"),$APP.$cljs$cst$260$value$$,"idea"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.type.issue"),$APP.$cljs$cst$260$value$$,"issue"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.type.doubt"),$APP.$cljs$cst$260$value$$,"doubt"],null)],null)})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_feedback__fields-row main_ui_settings_feedback__description",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$forms$textarea$$,{"class":"main_ui_settings_feedback__feedback-description",label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.description"),name:$APP.$cljs$cst$1621$content$$,
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.description-placeholder"),rows:5})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_feedback__fields-row",children:[(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_feedback__field-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.penpot.link")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{label:"",name:$APP.$cljs$cst$5160$error_href$$,placeholder:"https://penpot.app/",
"show-success?":!0}),$APP.$cljs$core$truth_$$($report$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$initial$jscomp$41_on_download$jscomp$3$$,className:"main_ui_settings_feedback__link main_ui_settings_feedback__download-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("labels.download",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["report.txt"]))}):null]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,{label:$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($loading$$))?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.sending"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.send"),className:"main_ui_settings_feedback__feedback-button-link",disabled:$APP.$cljs$core$_deref$$($loading$$)}),(0,$APP.$rumext$v2$jsx$$)("hr",{}),(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_settings_feedback__feedback-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.other-ways-contact")}),(0,$APP.$rumext$v2$jsx$$)("a",
{href:"https://community.penpot.app",target:"_blank",className:"main_ui_settings_feedback__link",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.discourse-title")}),(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_feedback__field-text main_ui_settings_feedback__bottom-margin",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.discourse-subtitle1")}),(0,$APP.$rumext$v2$jsx$$)("a",{href:"https://x.com/penpotapp",target:"_blank",className:"main_ui_settings_feedback__link",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.twitter-title")}),(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_feedback__field-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("feedback.twitter-subtitle1")})]})};
$app$main$ui$settings$feedback$feedback_page_STAR_$$=function($props_89719$$){var $error_report_id$jscomp$2_report$jscomp$6$$=$props_89719$$.errorReportId;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("title.settings.feedback"))});$error_report_id$jscomp$2_report$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($error_report_id$jscomp$2_report$jscomp$6$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$errors$last_report$$))?$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$errors$last_report$$):null;return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_feedback__dashboard-settings",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_feedback__form-container",children:(0,$APP.$rumext$v2$create_element$$)($app$main$ui$settings$feedback$feedback_form_STAR_$$,{...$props_89719$$,
errorReport:$error_report_id$jscomp$2_report$jscomp$6$$})})})};$app$main$ui$settings$notifications$on_submit$$=function($form$jscomp$218_params$jscomp$465$$){$form$jscomp$218_params$jscomp$465$$=$APP.$cljs$cst$4855$clean_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$218_params$jscomp$465$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$update_notifications$$($form$jscomp$218_params$jscomp$465$$))};
$app$main$ui$settings$notifications$notifications_page_STAR_$$=function($form$jscomp$219_props_89720_settings$$){var $profile$jscomp$83$$=$form$jscomp$219_props_89720_settings$$.profile;$form$jscomp$219_props_89720_settings$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($profile$jscomp$83$$)],function(){return $APP.$cljs$core$update_vals$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$ui$settings$notifications$default_notification_settings$$,
$APP.$cljs$cst$3204$notifications$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$573$props$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$83$$))])),$APP.$app$common$data$name$$)});$form$jscomp$219_props_89720_settings$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$notifications$schema_COLON_notifications_form$$,$APP.$cljs$cst$4857$initial$$,$form$jscomp$219_props_89720_settings$$):
$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$notifications$schema_COLON_notifications_form$$,$APP.$cljs$cst$4857$initial$$,$form$jscomp$219_props_89720_settings$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("title.settings.notifications"))});return(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_settings_notifications__notifications-page",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$form$$,{"class":"main_ui_settings_notifications__notifications-form","on-submit":$app$main$ui$settings$notifications$on_submit$$,form:$form$jscomp$219_props_89720_settings$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_notifications__form-container",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.title")}),(0,$APP.$rumext$v2$jsx$$)("h3",
{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.dashboard.title")}),(0,$APP.$rumext$v2$jsx$$)("h4",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.dashboard-comments.title")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_notifications__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$radio_buttons$$,{options:new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.dashboard-comments.all"),$APP.$cljs$cst$260$value$$,"all"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.dashboard-comments.partial"),$APP.$cljs$cst$260$value$$,
"partial"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.dashboard-comments.none"),$APP.$cljs$cst$260$value$$,"none"],null)],null),name:$APP.$cljs$cst$3200$dashboard_comments$$,"class":"main_ui_settings_notifications__radio-btns"})}),(0,$APP.$rumext$v2$jsx$$)("h3",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email.title")}),
(0,$APP.$rumext$v2$jsx$$)("h4",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email-comments.title")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_notifications__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$radio_buttons$$,{options:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email-comments.all"),$APP.$cljs$cst$260$value$$,"all"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email-comments.partial"),$APP.$cljs$cst$260$value$$,"partial"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email-comments.none"),
$APP.$cljs$cst$260$value$$,"none"],null)],null),name:$APP.$cljs$cst$3201$email_comments$$,"class":"main_ui_settings_notifications__radio-btns"})}),(0,$APP.$rumext$v2$jsx$$)("h4",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email-invites.title")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_notifications__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$radio_buttons$$,{options:new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email-invites.all"),$APP.$cljs$cst$260$value$$,"all"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.email-invites.none"),$APP.$cljs$cst$260$value$$,"none"],
null)],null),name:$APP.$cljs$cst$3202$email_invites$$,"class":"main_ui_settings_notifications__radio-btns"})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.settings.notifications.submit"),"data-testid":"submit-settings",className:"main_ui_settings_notifications__update-btn"})]})})})};$app$main$ui$settings$options$on_success$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("notifications.profile-saved")))};
$app$main$ui$settings$options$on_submit$$=function($data$jscomp$530_form$jscomp$220$$){$data$jscomp$530_form$jscomp$220$$=$APP.$cljs$cst$4855$clean_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($data$jscomp$530_form$jscomp$220$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$profile$update_profile$$($data$jscomp$530_form$jscomp$220$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$profile$persist_profile$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2445$on_success$$,$app$main$ui$settings$options$on_success$$],null)]))]))};
$app$main$ui$settings$options$options_form$$=function(){var $profile$jscomp$84$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$form$jscomp$221_initial$jscomp$42$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($profile$jscomp$84$$)],function(){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($profile$jscomp$84$$,$APP.$cljs$cst$2787$lang$$,function($p1__89721_SHARP_$$){return $APP.$cljs$core$truth_$$($p1__89721_SHARP_$$)?
$p1__89721_SHARP_$$:""}),$APP.$cljs$cst$3177$theme$$,function($p1__89722_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__89722_SHARP_$$,"default")?"dark":$APP.$cljs$core$truth_$$($p1__89722_SHARP_$$)?$p1__89722_SHARP_$$:"dark"})});$form$jscomp$221_initial$jscomp$42$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$options$schema_COLON_options_form$$,
$APP.$cljs$cst$4857$initial$$,$form$jscomp$221_initial$jscomp$42$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$options$schema_COLON_options_form$$,$APP.$cljs$cst$4857$initial$$,$form$jscomp$221_initial$jscomp$42$$);return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$forms$form$$,{"class":"main_ui_settings_options__options-form","on-submit":$app$main$ui$settings$options$on_submit$$,form:$form$jscomp$221_initial$jscomp$42$$,children:[(0,$APP.$rumext$v2$jsx$$)("h3",
{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.language")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_options__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$select$$,{options:$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,"Auto (browser)",$APP.$cljs$cst$260$value$$,
""],null)],null),$APP.$app$util$i18n$supported_locales$$),label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.select-ui-language"),"default":"",name:$APP.$cljs$cst$2787$lang$$,"data-testid":"setting-lang"})}),(0,$APP.$rumext$v2$jsx$$)("h3",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.theme-change")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_options__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$select$$,
{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.select-ui-theme"),name:$APP.$cljs$cst$3177$theme$$,"default":"dark",options:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.select-ui-theme.dark"),$APP.$cljs$cst$260$value$$,"dark"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.select-ui-theme.light"),$APP.$cljs$cst$260$value$$,"light"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.select-ui-theme.system"),$APP.$cljs$cst$260$value$$,"system"],null)],null),"data-testid":"setting-theme"})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.update-settings"),
"data-testid":"submit-lang-change",className:"main_ui_settings_options__btn-primary"})]})};
$app$main$ui$settings$options$options_page$$=function(){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("title.settings.options"))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_options__dashboard-settings",children:(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"settings-form",className:"main_ui_settings_options__form-container",children:[(0,$APP.$rumext$v2$jsx$$)("h2",
{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.settings")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$options$options_form$$,{})]})})};
$app$main$ui$settings$password$on_error$$=function($form$jscomp$222_msg$jscomp$52$$,$G__89725_error$jscomp$157$$){$G__89725_error$jscomp$157$$=$APP.$cljs$cst$271$code$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$ex_data$$($G__89725_error$jscomp$157$$));switch($G__89725_error$jscomp$157$$ instanceof $APP.$cljs$core$Keyword$$?$G__89725_error$jscomp$157$$.$fqn$:null){case "old-password-not-match":return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$222_msg$jscomp$52$$,
$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$cst$3197$password_old$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.wrong-old-password")],null));case "email-as-password":return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$222_msg$jscomp$52$$,$APP.$cljs$core$assoc_in$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$cst$3195$password_1$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.email-as-password")],null));default:return $form$jscomp$222_msg$jscomp$52$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("generic.error"),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$error$$($form$jscomp$222_msg$jscomp$52$$))}};
$app$main$ui$settings$password$on_success$$=function($form$jscomp$223_password_old_node$$){$APP.$cljs$core$reset_BANG_$$($form$jscomp$223_password_old_node$$,null);$form$jscomp$223_password_old_node$$=$APP.$goog$dom$getElement$$("password-old");var $msg$jscomp$53$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.notifications.password-saved");$form$jscomp$223_password_old_node$$!=null&&($form$jscomp$223_password_old_node$$.value="");$APP.$app$util$dom$focus_BANG_$$($form$jscomp$223_password_old_node$$);
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$02$$($msg$jscomp$53$$))};
$app$main$ui$settings$password$on_submit$$=function($form$jscomp$224_params$jscomp$466$$,$event$jscomp$732$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$732$$);$form$jscomp$224_params$jscomp$466$$=$APP.$cljs$core$with_meta$$($APP.$cljs$cst$4855$clean_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$224_params$jscomp$466$$)),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$settings$password$on_success$$,
$form$jscomp$224_params$jscomp$466$$),$APP.$cljs$cst$1281$on_error$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$settings$password$on_error$$,$form$jscomp$224_params$jscomp$466$$)],null));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$update_password$$($form$jscomp$224_params$jscomp$466$$))};
$app$main$ui$settings$password$password_form$$=function(){var $form$jscomp$225_initial$jscomp$43$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$3197$password_old$$,"",$APP.$cljs$cst$3195$password_1$$,"",$APP.$cljs$cst$3196$password_2$$,""],null)});$form$jscomp$225_initial$jscomp$43$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,
$app$main$ui$settings$password$schema_COLON_password_form$$,$APP.$cljs$cst$4857$initial$$,$form$jscomp$225_initial$jscomp$43$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$password$schema_COLON_password_form$$,$APP.$cljs$cst$4857$initial$$,$form$jscomp$225_initial$jscomp$43$$);return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$forms$form$$,{"class":"main_ui_settings_password__password-form","on-submit":$app$main$ui$settings$password$on_submit$$,form:$form$jscomp$225_initial$jscomp$43$$,
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_password__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"password",name:$APP.$cljs$cst$3197$password_old$$,"auto-focus?":!0,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.old-password")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_password__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"password",
name:$APP.$cljs$cst$3195$password_1$$,"show-success?":!0,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.new-password")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_password__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"password",name:$APP.$cljs$cst$3196$password_2$$,"show-success?":!0,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.confirm-password")})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,
{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.password-change"),"data-testid":"submit-password",className:"main_ui_settings_password__update-btn"})]})};
$app$main$ui$settings$password$password_page$$=function(){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("title.settings.password"))});return(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_settings_password__dashboard-settings",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_password__form-container",children:[(0,$APP.$rumext$v2$jsx$$)("h2",
{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.password-change")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$password$password_form$$,{})]})})};$app$main$ui$settings$profile$on_success$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("notifications.profile-saved")))};
$app$main$ui$settings$profile$on_submit$$=function($data$jscomp$532_form$jscomp$226$$){$data$jscomp$532_form$jscomp$226$$=$APP.$cljs$cst$4855$clean_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($data$jscomp$532_form$jscomp$226$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$profile$update_profile$$($data$jscomp$532_form$jscomp$226$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$profile$persist_profile$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2445$on_success$$,$app$main$ui$settings$profile$on_success$$],null)]))]))};
$app$main$ui$settings$profile$profile_form$$=function(){var $form$jscomp$227_profile$jscomp$85$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$);$form$jscomp$227_profile$jscomp$85$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,$app$main$ui$settings$profile$schema_COLON_profile_form$$,$APP.$cljs$cst$4857$initial$$,$form$jscomp$227_profile$jscomp$85$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,
$app$main$ui$settings$profile$schema_COLON_profile_form$$,$APP.$cljs$cst$4857$initial$$,$form$jscomp$227_profile$jscomp$85$$);var $on_show_change_email$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$6070$change_email$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)}),$on_show_delete_account$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$6401$delete_account$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)});return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$forms$form$$,{"on-submit":$app$main$ui$settings$profile$on_submit$$,form:$form$jscomp$227_profile$jscomp$85$$,"class":"main_ui_settings_profile__profile-form",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_profile__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"text",name:$APP.$cljs$cst$1349$fullname$$,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-name")})}),
(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$on_show_change_email$$,className:"main_ui_settings_profile__fields-row",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"email",name:$APP.$cljs$cst$3176$email$$,disabled:!0,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-email")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_profile__options",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"change-email",children:(0,$APP.$rumext$v2$jsx$$)("a",
{onClick:$on_show_change_email$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.change-email")})})})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.save-settings"),disabled:$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$cst$1610$touched$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$227_profile$jscomp$85$$))),className:"main_ui_settings_profile__btn-primary"}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_profile__links",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_profile__link-item",children:(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$on_show_delete_account$$,"data-testid":"remove-acount-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.remove-account")})})})]})};
$app$main$ui$settings$profile$profile_photo_form$$=function(){var $input_ref$jscomp$12$$=(0,$APP.$rumext$v2$use_ref$$)(null),$profile$jscomp$86$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$photo$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($profile$jscomp$86$$)],function(){return $APP.$app$config$resolve_profile_photo_url$$($profile$jscomp$86$$)}),$on_image_click$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$click$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$12$$))});
return(0,$APP.$rumext$v2$jsx$$)("form",{className:"main_ui_settings_profile__avatar-form",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_profile__image-change-field",children:[(0,$APP.$rumext$v2$jsx$$)("span",{onClick:$on_image_click$jscomp$1$$,className:"main_ui_settings_profile__update-overlay",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.update")}),(0,$APP.$rumext$v2$jsx$$)("img",{src:$photo$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$file_uploader$file_uploader$$,
{accept:"image/jpeg,image/png",multi:!1,ref:$input_ref$jscomp$12$$,"on-selected":function($file$jscomp$220$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$update_photo$$($file$jscomp$220$$))},"data-testid":"profile-image-input"})]})})};
$app$main$ui$settings$profile$profile_page$$=function(){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("title.settings.profile"))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_profile__dashboard-settings",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_profile__form-container",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.profile")}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$profile$profile_photo_form$$,{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$profile$profile_form$$,{})]})})};$app$main$ui$settings$sidebar$go_settings_profile$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$5119$settings_profile$$))};$app$main$ui$settings$sidebar$go_settings_feedback$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$2466$settings_feedback$$))};
$app$main$ui$settings$sidebar$go_settings_password$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$6135$settings_password$$))};$app$main$ui$settings$sidebar$go_settings_options$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$6136$settings_options$$))};
$app$main$ui$settings$sidebar$go_settings_subscription$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4850$settings_subscription$$))};$app$main$ui$settings$sidebar$go_settings_access_tokens$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$6137$settings_access_tokens$$))};
$app$main$ui$settings$sidebar$go_settings_notifications$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$6138$settings_notifications$$))};
$app$main$ui$settings$sidebar$show_release_notes$$=function($event$jscomp$733$$){var $version$jscomp$56$$=$APP.$cljs$cst$1266$main$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$config$version$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,
"show-release-notes",$APP.$cljs$cst$2247$version$$,$version$jscomp$56$$],null)));return $event$jscomp$733$$.altKey&&$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$733$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1215$onboarding$$],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$5118$release_notes$$,$APP.$cljs$cst$2247$version$$,$version$jscomp$56$$],null)))};
$app$main$ui$settings$sidebar$sidebar_content$$=function($profile_QMARK__props_89734$$){var $profile$jscomp$87$$=$profile_QMARK__props_89734$$.profile,$notifications_QMARK__section$jscomp$58$$=$profile_QMARK__props_89734$$.section;$profile_QMARK__props_89734$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($notifications_QMARK__section$jscomp$58$$,$APP.$cljs$cst$5119$settings_profile$$);var $password_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($notifications_QMARK__section$jscomp$58$$,
$APP.$cljs$cst$6135$settings_password$$),$options_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($notifications_QMARK__section$jscomp$58$$,$APP.$cljs$cst$6136$settings_options$$),$feedback_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($notifications_QMARK__section$jscomp$58$$,$APP.$cljs$cst$2466$settings_feedback$$),$subscription_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($notifications_QMARK__section$jscomp$58$$,$APP.$cljs$cst$4850$settings_subscription$$),
$access_tokens_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($notifications_QMARK__section$jscomp$58$$,$APP.$cljs$cst$6137$settings_access_tokens$$);$notifications_QMARK__section$jscomp$58$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($notifications_QMARK__section$jscomp$58$$,$APP.$cljs$cst$6138$settings_notifications$$);var $team_id$jscomp$169$$=function(){var $or__5025__auto__$jscomp$1346$$=$APP.$cljs$cst$3234$app_DOT_main_DOT_data_DOT_team_SLASH_current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$storage$global$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1346$$)?$or__5025__auto__$jscomp$1346$$:$APP.$cljs$cst$2453$default_team_id$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$87$$)}(),$go_dashboard$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$169$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_dashboard_recent$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1912$team_id$$,
$team_id$jscomp$169$$])))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_sidebar__sidebar-content",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_sidebar__sidebar-content-section",children:(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$go_dashboard$$,className:"main_ui_settings_sidebar__back-to-dashboard",children:[$app$main$ui$settings$sidebar$arrow_icon$$,(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__back-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.dashboard")})]})}),
(0,$APP.$rumext$v2$jsx$$)("hr",{className:"main_ui_settings_sidebar__sidebar-separator"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_sidebar__sidebar-content-section",children:(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_settings_sidebar__sidebar-nav-settings",children:[(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$app$main$ui$settings$sidebar$go_settings_profile$$,className:($profile_QMARK__props_89734$$?"main_ui_settings_sidebar__current":"")+" main_ui_settings_sidebar__settings-item",
children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.profile")})}),(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$app$main$ui$settings$sidebar$go_settings_password$$,className:($password_QMARK_$$?"main_ui_settings_sidebar__current":"")+" main_ui_settings_sidebar__settings-item",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.password")})}),
(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$app$main$ui$settings$sidebar$go_settings_notifications$$,className:($notifications_QMARK__section$jscomp$58$$?"main_ui_settings_sidebar__current":"")+" main_ui_settings_sidebar__settings-item",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.notifications")})}),(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$app$main$ui$settings$sidebar$go_settings_options$$,
"data-testid":"settings-profile",className:($options_QMARK_$jscomp$1$$?"main_ui_settings_sidebar__current":"")+" main_ui_settings_sidebar__settings-item",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.settings")})}),$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1216$subscriptions$$)?(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$app$main$ui$settings$sidebar$go_settings_subscription$$,
"data-testid":"settings-subscription",className:($subscription_QMARK_$$?"main_ui_settings_sidebar__current":"")+" main_ui_settings_sidebar__settings-item",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.labels")})}):null,$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1175$access_tokens$$)?(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$app$main$ui$settings$sidebar$go_settings_access_tokens$$,
"data-testid":"settings-access-tokens",className:($access_tokens_QMARK_$$?"main_ui_settings_sidebar__current":"")+" main_ui_settings_sidebar__settings-item",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.access-tokens")})}):null,(0,$APP.$rumext$v2$jsx$$)("hr",{className:"main_ui_settings_sidebar__sidebar-separator"}),(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$app$main$ui$settings$sidebar$show_release_notes$$,
"data-testid":"release-notes",className:"main_ui_settings_sidebar__settings-item",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.release-notes")})}),$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1220$user_feedback$$)?(0,$APP.$rumext$v2$jsxs$$)("li",{onClick:$app$main$ui$settings$sidebar$go_settings_feedback$$,className:($feedback_QMARK_$$?"main_ui_settings_sidebar__current":
"")+" main_ui_settings_sidebar__settings-item",children:[$app$main$ui$settings$sidebar$feedback_icon$$,(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_sidebar__element-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.contact-us")})]}):null]})})]})};
$app$main$ui$settings$subscription$plan_card_STAR_$$=function($benefits_props_89735$$){var $recommended$$=$benefits_props_89735$$.recommended,$card_title_icon$$=$benefits_props_89735$$.cardTitleIcon,$editors$jscomp$4$$=$benefits_props_89735$$.editors,$cta_text_with_icon$$=$benefits_props_89735$$.ctaTextWithIcon,$card_title$$=$benefits_props_89735$$.cardTitle,$cta_text_trial$$=$benefits_props_89735$$.ctaTextTrial,$benefits_title$$=$benefits_props_89735$$.benefitsTitle,$show_button_cta$$=$benefits_props_89735$$.showButtonCta,
$cta_text$$=$benefits_props_89735$$.ctaText,$cta_link_trial$$=$benefits_props_89735$$.ctaLinkTrial,$cta_link_with_icon$$=$benefits_props_89735$$.ctaLinkWithIcon,$price_value$$=$benefits_props_89735$$.priceValue,$cta_link$$=$benefits_props_89735$$.ctaLink,$price_period$$=$benefits_props_89735$$.pricePeriod;$benefits_props_89735$$=$benefits_props_89735$$.benefits;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__plan-card "+($APP.$cljs$core$truth_$$($recommended$$)?"main_ui_settings_subscription__plan-card-highlight":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__plan-card-header",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__plan-card-title-container",children:[$APP.$cljs$core$truth_$$($card_title_icon$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$card_title_icon$$,className:"main_ui_settings_subscription__plan-title-icon",size:"s"}):null,(0,$APP.$rumext$v2$jsx$$)("h4",{className:"main_ui_settings_subscription__plan-card-title",
children:$card_title$$}),$APP.$cljs$core$truth_$$($recommended$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$notifications$badge$badge_notification$$,{content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.recommended"),size:$APP.$cljs$cst$3719$small$$,"is-focus":!0}):null,$APP.$cljs$core$truth_$$($editors$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_subscription__plan-editors",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.editors",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$editors$jscomp$4$$]))}):null]}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($price_value$$)?$price_period$$:$price_value$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__plan-price",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_subscription__plan-price-value",children:$price_value$$}),(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_settings_subscription__plan-price-period",
children:[" / ",$price_period$$]})]}):null]}),$APP.$cljs$core$truth_$$($benefits_title$$)?(0,$APP.$rumext$v2$jsx$$)("h5",{className:"main_ui_settings_subscription__benefits-title",children:$benefits_title$$}):null,(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_settings_subscription__benefits-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$275$$,$benefit$$){$out_arr__44057__auto__$jscomp$275$$.push((0,$APP.$rumext$v2$jsxs$$)("li",
{className:"main_ui_settings_subscription__benefit",children:["- ",$benefit$$]},""+($benefit$$??"")));return $out_arr__44057__auto__$jscomp$275$$},[],$benefits_props_89735$$)}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($cta_link_with_icon$$)?$cta_text_with_icon$$:$cta_link_with_icon$$)?(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$cta_link_with_icon$$,className:"main_ui_settings_subscription__cta-button main_ui_settings_subscription__more-info",children:[$cta_text_with_icon$$,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"open-link",size:"s"})]}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($cta_link$$)?$APP.$cljs$core$truth_$$($cta_text$$)?$APP.$cljs$core$not$$($show_button_cta$$):$cta_text$$:$cta_link$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$cta_link$$,className:"main_ui_settings_subscription__cta-button "+($APP.$cljs$core$not$$($APP.$cljs$core$truth_$$($cta_link_trial$$)?$cta_text_trial$$:$cta_link_trial$$)?"main_ui_settings_subscription__bottom-link":""),children:$cta_text$$}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($cta_link$$)?
$APP.$cljs$core$truth_$$($cta_text$$)?$show_button_cta$$:$cta_text$$:$cta_link$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"button",className:$APP.$cljs$core$not$$($APP.$cljs$core$truth_$$($cta_link_trial$$)?$cta_text_trial$$:$cta_link_trial$$)?"main_ui_settings_subscription__bottom-button":"",onClick:$cta_link$$,children:$cta_text$$}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($cta_link_trial$$)?$cta_text_trial$$:$cta_link_trial$$)?
(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$cta_link_trial$$,className:"main_ui_settings_subscription__cta-button main_ui_settings_subscription__bottom-link",children:$cta_text_trial$$}):null]})};
$app$main$ui$settings$subscription$subscribe_management_dialog$$=function($editors$jscomp$5_map__89738_props_89737$$){$editors$jscomp$5_map__89738_props_89737$$=$APP.$rumext$v2$util$wrap_props$$($editors$jscomp$5_map__89738_props_89737$$);var $map__89738__$1_unlimited_modal_step$$=$APP.$cljs$core$__destructure_map$$($editors$jscomp$5_map__89738_props_89737$$),$subscription_type$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,$cljs$cst$6408$subscription_type$$),
$current_subscription$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,$cljs$cst$6409$current_subscription$$);$editors$jscomp$5_map__89738_props_89737$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,$APP.$cljs$cst$3181$editors$$);var $subscribe_to_trial$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,$cljs$cst$6410$subscribe_to_trial$$),$unlimited_modal_step_STAR_$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(1);$map__89738__$1_unlimited_modal_step$$=$APP.$cljs$core$_deref$$($unlimited_modal_step_STAR_$$);var $subscription_name$$=$APP.$cljs$core$truth_$$($subscribe_to_trial$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$10$$,"unlimited")?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited-trial"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise-trial"):
function(){switch($subscription_type$jscomp$10$$){case "professional":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional");case "unlimited":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited");case "enterprise":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise");default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($subscription_type$jscomp$10$$)].join(""));
}}(),$min_editors$jscomp$1$$=$APP.$cljs$core$seq$$($editors$jscomp$5_map__89738_props_89737$$)?$APP.$cljs$core$count$$($editors$jscomp$5_map__89738_props_89737$$):1,$initial$jscomp$44_subscribe_to_enterprise$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($min_editors$jscomp$1$$)],function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$6406$min_members$$,$min_editors$jscomp$1$$,$cljs$cst$6407$redirect_to_payment_details$$,!1],null)}),$handle_accept_dialog$jscomp$3_schema$jscomp$246$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($min_editors$jscomp$1$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"SeatsForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$6406$min_members$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$958$app_DOT_common_DOT_schema_SLASH_number$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$336$min$$,$min_editors$jscomp$1$$,$APP.$cljs$cst$337$max$$,9999],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$6407$redirect_to_payment_details$$,$APP.$cljs$cst$419$boolean$$],null)],null)}),$form$jscomp$228$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?
$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,$handle_accept_dialog$jscomp$3_schema$jscomp$246$$,$APP.$cljs$cst$4857$initial$$,$initial$jscomp$44_subscribe_to_enterprise$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,$handle_accept_dialog$jscomp$3_schema$jscomp$246$$,$APP.$cljs$cst$4857$initial$$,$initial$jscomp$44_subscribe_to_enterprise$$),$submit_in_progress$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$subscribe_to_unlimited$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($min_members$$,
$add_payment_details_QMARK__href$jscomp$20$$){if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($submit_in_progress$$)))return null;$APP.$rumext$v2$set_ref_val_BANG_$$($submit_in_progress$$,!0);var $return_url$$=encodeURIComponent($APP.$app$util$globals$location$$.href);$add_payment_details_QMARK__href$jscomp$20$$="payments/subscriptions/create?type\x3dunlimited\x26show\x3d"+($add_payment_details_QMARK__href$jscomp$20$$??"")+"\x26quantity\x3d"+($min_members$$??"")+"\x26returnUrl\x3d"+($return_url$$??
"");$APP.$cljs$core$reset_BANG_$$($form$jscomp$228$$,null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-trial-subscription",$APP.$cljs$cst$139$type$$,"unlimited",$APP.$cljs$cst$4851$quantity$$,$min_members$$],null)),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$router$nav_raw$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2419$href$$,$add_payment_details_QMARK__href$jscomp$20$$]))]))});$initial$jscomp$44_subscribe_to_enterprise$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-trial-subscription",$APP.$cljs$cst$139$type$$,"enterprise"],null)));var $href$jscomp$21$$="payments/subscriptions/create?type\x3denterprise\x26returnUrl\x3d"+(encodeURIComponent($APP.$app$util$globals$location$$.href)??"");return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav_raw$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2419$href$$,
$href$jscomp$21$$])))});$handle_accept_dialog$jscomp$3_schema$jscomp$246$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"open-subscription-management",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"settings",$APP.$cljs$cst$1355$section$$,"subscription-management-modal"],
null)));var $href_89747$$="payments/subscriptions/show?returnUrl\x3d"+(encodeURIComponent($APP.$app$util$globals$location$$.href)??"");$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav_raw$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2419$href$$,$href_89747$$])));return $APP.$app$main$data$modal$hide_BANG_$$()});var $handle_close_dialog$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"close-subscription-modal"],null)));return $APP.$app$main$data$modal$hide_BANG_$$()}),$show_editors_list_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$show_editors_list$$=$APP.$cljs$core$_deref$$($show_editors_list_STAR_$$),$handle_click$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$734$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$734$$);
return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($show_editors_list_STAR_$$,$APP.$cljs$core$not$$)}),$on_submit$jscomp$22$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_subscription$$),$APP.$rumext$v2$adapt$$($unlimited_modal_step_STAR_$$)],function($form__$1$jscomp$25_min_members$jscomp$1$$){var $clean_data$jscomp$1_redirect_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form__$1$jscomp$25_min_members$jscomp$1$$),
$APP.$cljs$cst$4855$clean_data$$);$form__$1$jscomp$25_min_members$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clean_data$jscomp$1_redirect_QMARK_$$,$cljs$cst$6406$min_members$$);$clean_data$jscomp$1_redirect_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clean_data$jscomp$1_redirect_QMARK_$$,$cljs$cst$6407$redirect_to_payment_details$$);return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,["unpaid",null,"canceled",null],null),null),$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($current_subscription$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($unlimited_modal_step_STAR_$$),2)?$subscribe_to_unlimited$$.$cljs$core$IFn$_invoke$arity$2$?$subscribe_to_unlimited$$.$cljs$core$IFn$_invoke$arity$2$($form__$1$jscomp$25_min_members$jscomp$1$$,$clean_data$jscomp$1_redirect_QMARK_$$):$subscribe_to_unlimited$$($form__$1$jscomp$25_min_members$jscomp$1$$,
$clean_data$jscomp$1_redirect_QMARK_$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($unlimited_modal_step_STAR_$$,$APP.$cljs$core$inc$$)}),$on_add_payments_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$228$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$142$data$$,$APP.$cljs$core$assoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$6407$redirect_to_payment_details$$,
!0]))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__modal-dialog",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_close_dialog$jscomp$3$$,className:"main_ui_settings_subscription__close-btn",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"close",size:"m"})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-title main_ui_settings_subscription__subscription-title",
children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,2)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management-dialog.step-2-title"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.management.dialog.title",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$subscription_name$$]))}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__modal-content",
children:[$APP.$cljs$core$seq$$($editors$jscomp$5_map__89738_props_89737$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,2)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_subscription__editors-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.management.dialog.currently-editors-title",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($APP.$cljs$core$count$$($editors$jscomp$5_map__89738_props_89737$$))]))}),
(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$handle_click$jscomp$5$$,className:"main_ui_settings_subscription__cta-button main_ui_settings_subscription__show-editors-button",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management.dialog.editors"),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$APP.$cljs$core$truth_$$($show_editors_list$$)?"arrow-up":"arrow-down",className:"main_ui_settings_subscription__icon-dropdown",
size:"s"})]}),$APP.$cljs$core$truth_$$($show_editors_list$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_subscription__editors-text main_ui_settings_subscription__editors-list-warning",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management.dialog.editors-explanation")}),(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_settings_subscription__editors-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$276$$,
$editor$jscomp$12$$){$out_arr__44057__auto__$jscomp$276$$.push((0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_settings_subscription__team-name",children:["- ",$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($editor$jscomp$12$$)]},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($editor$jscomp$12$$)??"")));return $out_arr__44057__auto__$jscomp$276$$},[],$editors$jscomp$5_map__89738_props_89737$$)})]}):null]}):null,($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$10$$,
"professional")&&$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,["enterprise",null,"unlimited",null],null),null),$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($current_subscription$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$10$$,"unlimited")&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($current_subscription$$),
"enterprise"))&&!$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,["unpaid",null,"canceled",null],null),null),$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($current_subscription$$))&&$APP.$cljs$core$not$$($subscribe_to_trial$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management.dialog.downgrade")}):
null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$991$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$10$$,"unlimited");return $and__5023__auto__$jscomp$991$$?$APP.$cljs$core$truth_$$($subscribe_to_trial$$)?$subscribe_to_trial$$:$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,["unpaid",null,"canceled",null],null),null),$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($current_subscription$$)):
$and__5023__auto__$jscomp$991$$}())?$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$forms$form$$,{"on-submit":$on_submit$jscomp$22$$,"class":"main_ui_settings_subscription__seats-form",form:$form$jscomp$228$$,children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,1)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__editors-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_settings_subscription__fields-row",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{type:"number",name:$cljs$cst$6406$min_members$$,"show-error":!1,label:"","class":"main_ui_settings_subscription__input-field"})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__editors-cost",children:[(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_settings_subscription__modal-text-medium",children:[$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$228$$),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$cljs$cst$6406$min_members$$],null))>25?$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{className:"main_ui_settings_subscription__modal-text-cap",tagName:"span",content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.management.dialog.price-month",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["175"]))}):null,
$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{className:$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$228$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$cljs$cst$6406$min_members$$],null))>25?"main_ui_settings_subscription__text-strikethrough":"",tagName:"span",content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.management.dialog.price-month",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([7*function(){var $or__5025__auto__$jscomp$1348$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$228$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$cljs$cst$6406$min_members$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1348$$)?$or__5025__auto__$jscomp$1348$$:0}()]))})]}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_settings_subscription__modal-text-medium",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management.dialog.payment-explanation")})]})]}),$APP.$cljs$core$truth_$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$228$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$cljs$cst$6406$min_members$$],null)))?(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_settings_subscription__error-message",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management.dialog.input-error")}):null,(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__unlimited-capped-warning",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management.dialog.unlimited-capped-warning")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-footer",
children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__action-buttons",children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.confirm-cancel"),onClick:$handle_close_dialog$jscomp$3$$,className:"main_ui_settings_subscription__cancel-button"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$submit_button_STAR_$$,{label:$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,["unpaid",null,"canceled",null],null),null),$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($current_subscription$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.subscribe"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.continue"),className:"main_ui_settings_subscription__primary-button"})]})})]}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__89738__$1_unlimited_modal_step$$,
2)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_subscription__modal-text-medium",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management-dialog.step-2-description")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-footer",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__action-buttons",children:[(0,$APP.$rumext$v2$jsx$$)("input",
{type:"submit",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management-dialog.step-2-skip-button"),className:"main_ui_settings_subscription__cancel-button"}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"submit",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.management-dialog.step-2-add-payment-button"),onClick:$on_add_payments_click$$,className:"main_ui_settings_subscription__primary-button"})]})})]}):null]}):(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_settings_subscription__modal-footer",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__action-buttons",children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.confirm-cancel"),onClick:$handle_close_dialog$jscomp$3$$,className:"main_ui_settings_subscription__cancel-button"}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",value:$APP.$cljs$core$truth_$$($subscribe_to_trial$$)?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.start-trial"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.continue"),onClick:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($subscribe_to_trial$$)?$subscribe_to_trial$$:$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,["unpaid",null,"canceled",null],null),null),$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($current_subscription$$)))?
$initial$jscomp$44_subscribe_to_enterprise$$:$handle_accept_dialog$jscomp$3_schema$jscomp$246$$,className:"main_ui_settings_subscription__primary-button"})]})})]})]})})};
$app$main$ui$settings$subscription$subscription_success_dialog$$=function($map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$){$map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$=$APP.$rumext$v2$util$wrap_props$$($map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$);$map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$=$APP.$cljs$core$__destructure_map$$($map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$);$map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$,$cljs$cst$6412$subscription_name$$);var $profile$jscomp$89$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$handle_close_dialog$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"subscription-success"],null)));return $APP.$app$main$data$modal$hide_BANG_$$()});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__modal-dialog main_ui_settings_subscription__subscription-success",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_close_dialog$jscomp$4$$,
className:"main_ui_settings_subscription__close-btn",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"close",size:"m"})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__modal-success-content",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-start",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$raw_svg$raw_svg_STAR_$$,{id:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("light",
$APP.$cljs$cst$3177$theme$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$89$$))?"logo-subscription-light":"logo-subscription"})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__modal-end",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.sucess.dialog.title",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$]))}),
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$,"professional")?(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_subscription__modal-text-large",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.success.dialog.thanks",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$map__89741_map__89741__$1_props_89740_subscription_name$jscomp$1$$]))}):null,(0,$APP.$rumext$v2$jsx$$)("p",
{className:"main_ui_settings_subscription__modal-text-large",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.success.dialog.description")}),(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_settings_subscription__modal-text-large",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.sucess.dialog.footer")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_subscription__success-action-buttons",children:(0,$APP.$rumext$v2$jsx$$)("input",
{type:"button",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),onClick:$handle_close_dialog$jscomp$4$$,className:"main_ui_settings_subscription__primary-button"})})]})]})]})})};
$app$main$ui$settings$subscription$subscription_page_STAR_$$=function($member_since_props_89742_route$jscomp$27$$){var $profile$jscomp$90$$=$member_since_props_89742_route$jscomp$27$$.profile;$member_since_props_89742_route$jscomp$27$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$route$$);var $authenticated_QMARK_$jscomp$1$$=$APP.$app$main$data$auth$is_authenticated_QMARK_$$($profile$jscomp$90$$),$params_subscription$$=$APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$745$query$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($member_since_props_89742_route$jscomp$27$$))),
$show_trial_subscription_modal_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($params_subscription$$,"subscription-to-penpot-unlimited")||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($params_subscription$$,"subscription-to-penpot-enterprise"),$show_subscription_success_modal_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($params_subscription$$,"subscribed-to-penpot-unlimited")||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($params_subscription$$,
"subscribed-to-penpot-enterprise"),$success_modal_is_trial_QMARK_$$=$APP.$cljs$cst$835$trial$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$745$query$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($member_since_props_89742_route$jscomp$27$$))),$subscription_editors$$=$APP.$cljs$cst$3181$editors$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$573$props$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$90$$))),
$subscription$jscomp$10$$=$APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$573$props$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$90$$)),$subscription_type$jscomp$11$$=$APP.$app$main$ui$dashboard$subscription$get_subscription_type$$($subscription$jscomp$10$$),$subscription_is_trial_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($subscription$jscomp$10$$),"trialing");$member_since_props_89742_route$jscomp$27$$=
$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1553$created_at$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$90$$),"d MMMM, yyyy");var $subscribed_since$$=$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$6414$start_date$$.$cljs$core$IFn$_invoke$arity$1$($subscription$jscomp$10$$),"d MMMM, yyyy"),$go_to_pricing_page$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-pricing-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"settings",$APP.$cljs$cst$1355$section$$,"subscription"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://penpot.app/pricing")}),$go_to_payments$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"open-subscription-management",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"settings",$APP.$cljs$cst$1355$section$$,"subscription"],null)));var $href$jscomp$22$$="payments/subscriptions/show?returnUrl\x3d"+(encodeURIComponent($APP.$app$util$globals$location$$.href)??"");return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$nav_raw$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2419$href$$,
$href$jscomp$22$$])))}),$open_subscription_modal$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($subscription_editors$$)],function($subscription_type__$1$$,$current_subscription$jscomp$1$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"open-subscription-modal",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"settings:in-app"],null)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$6411$management_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$cljs$cst$6408$subscription_type$$,$subscription_type__$1$$,$cljs$cst$6409$current_subscription$$,$current_subscription$jscomp$1$$,$APP.$cljs$cst$3181$editors$$,$subscription_editors$$,$cljs$cst$6410$subscribe_to_trial$$,$APP.$cljs$core$not$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($subscription$jscomp$10$$))],
null)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.labels"))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($authenticated_QMARK_$jscomp$1$$),$APP.$rumext$v2$adapt$$($show_subscription_success_modal_QMARK_$$),$APP.$rumext$v2$adapt$$($show_trial_subscription_modal_QMARK_$$),$APP.$rumext$v2$adapt$$($success_modal_is_trial_QMARK_$$),
$APP.$rumext$v2$adapt$$($subscription$jscomp$10$$)],function(){return $authenticated_QMARK_$jscomp$1$$?$show_trial_subscription_modal_QMARK_$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"open-subscription-modal",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"settings:from-pricing-page"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$6411$management_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$cljs$cst$6408$subscription_type$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($params_subscription$$,"subscription-to-penpot-unlimited")?"unlimited":"enterprise",$cljs$cst$6409$current_subscription$$,$subscription$jscomp$10$$,$APP.$cljs$cst$3181$editors$$,
$subscription_editors$$,$cljs$cst$6410$subscribe_to_trial$$,$APP.$cljs$core$not$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($subscription$jscomp$10$$))],null)),$APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$4850$settings_subscription$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2412$app_DOT_main_DOT_router_SLASH_replace$$,
!0],null)]))])):$show_subscription_success_modal_QMARK_$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$6413$subscription_success$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$6412$subscription_name$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($params_subscription$$,"subscribed-to-penpot-unlimited")?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($success_modal_is_trial_QMARK_$$,
"true")?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited-trial"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited"):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($success_modal_is_trial_QMARK_$$,"true")?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise-trial"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise")],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$4850$settings_subscription$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2412$app_DOT_main_DOT_router_SLASH_replace$$,!0],null)]))])):null:null});return(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_settings_subscription__dashboard-section",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__dashboard-content",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_settings_subscription__title-section",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.labels")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__your-subscription",children:[(0,$APP.$rumext$v2$jsx$$)("h3",{className:"main_ui_settings_subscription__plan-section-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.section-plan")}),function(){switch($subscription_type$jscomp$11$$){case "professional":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,
{cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional"),benefits:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional.storage-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional.autosave-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional.teams-editors-benefit")],
null)});case "unlimited":return $subscription_is_trial_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,{ctaLinkTrial:$go_to_payments$$,cardTitleIcon:"character-u",cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited-trial"),editors:$APP.$cljs$cst$4851$quantity$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$573$props$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$90$$))),
benefits:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.storage-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.autosave-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.bill")],null),ctaTextTrial:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.add-payment-to-continue"),
ctaLink:$go_to_payments$$,ctaText:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.manage-your-subscription"),benefitsTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.benefits.all-professional-benefits")}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,{cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited"),cardTitleIcon:"character-u",benefitsTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.benefits.all-unlimited-benefits"),
benefits:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.storage-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.autosave-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.bill")],null),ctaText:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.manage-your-subscription"),
ctaLink:$go_to_payments$$,editors:$APP.$cljs$cst$4851$quantity$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$573$props$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$90$$)))});case "enterprise":return $subscription_is_trial_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,{cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise-trial"),cardTitleIcon:"character-e",
benefitsTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.benefits.all-unlimited-benefits"),benefits:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.unlimited-storage-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.autosave"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.capped-bill")],
null),ctaText:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.manage-your-subscription"),ctaLink:$go_to_payments$$,ctaTextTrial:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.add-payment-to-continue"),ctaLinkTrial:$go_to_payments$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,{cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise"),cardTitleIcon:"character-e",
benefitsTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.benefits.all-unlimited-benefits"),benefits:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.unlimited-storage-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.autosave"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.capped-bill")],
null),ctaText:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.manage-your-subscription"),ctaLink:$go_to_payments$$});default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($subscription_type$jscomp$11$$)].join(""));}}(),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__membership-container",children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($subscribed_since$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$11$$,
"professional"):$subscribed_since$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__membership",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{className:"main_ui_settings_subscription__subscription-member",iconId:"crown",size:"m"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_subscription__membership-date",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.support-us-since",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$subscribed_since$$]))})]}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__membership",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{className:"main_ui_settings_subscription__penpot-member",iconId:"user",size:"m"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_settings_subscription__membership-date",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.settings.member-since",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$member_since_props_89742_route$jscomp$27$$]))})]})]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_subscription__other-subscriptions",children:[(0,$APP.$rumext$v2$jsx$$)("h3",{className:"main_ui_settings_subscription__plan-section-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.other-plans")}),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$11$$,
"professional")?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,{cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional"),priceValue:"$0",pricePeriod:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.price-editor-month"),benefits:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional.storage-benefit"),
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional.autosave-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional.teams-editors-benefit")],null),ctaText:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.subscribe"),ctaLink:function(){return $open_subscription_modal$$.$cljs$core$IFn$_invoke$arity$1$?$open_subscription_modal$$.$cljs$core$IFn$_invoke$arity$1$("professional"):$open_subscription_modal$$("professional")},
ctaTextWithIcon:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.more-information"),ctaLinkWithIcon:$go_to_pricing_page$$}):null,$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$11$$,"unlimited")?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,{ctaLinkWithIcon:$go_to_pricing_page$$,showButtonCta:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$11$$,"professional"),cardTitleIcon:"character-u",
cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited"),benefits:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.storage-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.autosave-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.unlimited.bill")],
null),priceValue:"$7",ctaTextWithIcon:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.more-information"),ctaLink:function(){return $open_subscription_modal$$.$cljs$core$IFn$_invoke$arity$2$?$open_subscription_modal$$.$cljs$core$IFn$_invoke$arity$2$("unlimited",$subscription$jscomp$10$$):$open_subscription_modal$$("unlimited",$subscription$jscomp$10$$)},ctaText:$APP.$cljs$core$truth_$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($subscription$jscomp$10$$))?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.subscribe"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.try-it-free"),benefitsTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.benefits.all-professional-benefits"),recommended:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$11$$,"professional"),pricePeriod:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.price-editor-month")}):
null,$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$11$$,"enterprise")?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$plan_card_STAR_$$,{ctaLinkWithIcon:$go_to_pricing_page$$,showButtonCta:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$11$$,"professional"),cardTitleIcon:"character-e",cardTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise"),benefits:new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.unlimited-storage-benefit"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.autosave"),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.enterprise.capped-bill")],null),priceValue:"$950",ctaTextWithIcon:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.more-information"),
ctaLink:function(){return $open_subscription_modal$$.$cljs$core$IFn$_invoke$arity$2$?$open_subscription_modal$$.$cljs$core$IFn$_invoke$arity$2$("enterprise",$subscription$jscomp$10$$):$open_subscription_modal$$("enterprise",$subscription$jscomp$10$$)},ctaText:$APP.$cljs$core$truth_$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($subscription$jscomp$10$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.subscribe"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.try-it-free"),
benefitsTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.benefits.all-unlimited-benefits"),pricePeriod:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.price-organization-month")}):null]})]})})};
$app$main$ui$settings$settings_STAR_$$=function($props_89749$$){var $error_report_id$jscomp$3$$=$props_89749$$.errorReportId,$type$jscomp$719$$=$props_89749$$.type,$error_href$jscomp$2$$=$props_89749$$.errorHref,$section$jscomp$60$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($props_89749$$.route,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$723$name$$],null)),$profile$jscomp$91$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$);
$APP.$app$main$ui$hooks$use_shortcuts$$($cljs$cst$6415$app_DOT_main_DOT_ui_DOT_settings_SLASH_dashboard$$,$APP.$app$main$data$dashboard$shortcuts$shortcuts$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($profile$jscomp$91$$)],function(){return $profile$jscomp$91$$==null?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$router$assign_exception$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$3108$authentication$$],
null))):null});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$modal$modal_container_STAR_$$,{}),(0,$APP.$rumext$v2$jsxs$$)("section",{className:"main_ui_settings__dashboard-layout-refactor main_ui_settings__dashboard",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$sidebar$sidebar$$,{profile:$profile$jscomp$91$$,section:$section$jscomp$60$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings__dashboard-content",
children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$header$$,{}),(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_settings__dashboard-container",children:function(){var $G__89750__$1$$=$section$jscomp$60$$ instanceof $APP.$cljs$core$Keyword$$?$section$jscomp$60$$.$fqn$:null;switch($G__89750__$1$$){case "settings-profile":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$profile$profile_page$$,{});case "settings-feedback":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$feedback$feedback_page_STAR_$$,
{type:$type$jscomp$719$$,errorReportId:$error_report_id$jscomp$3$$,errorHref:$error_href$jscomp$2$$});case "settings-password":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$password$password_page$$,{});case "settings-options":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$options$options_page$$,{});case "settings-subscription":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$subscription$subscription_page_STAR_$$,{profile:$profile$jscomp$91$$});case "settings-access-tokens":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$access_tokens$access_tokens_page$$,
{});case "settings-notifications":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$notifications$notifications_page_STAR_$$,{profile:$profile$jscomp$91$$});default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__89750__$1$$)].join(""));}}()})]})]})]})};$APP.$app$main$ui$settings$settings_page_STAR_$$=function($props_89751$$){return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$settings$settings_STAR_$$,$props_89751$$)};
$cljs$cst$6410$subscribe_to_trial$$=new $APP.$cljs$core$Keyword$$(null,"subscribe-to-trial","subscribe-to-trial",-1105082881);$cljs$cst$6403$error_report$$=new $APP.$cljs$core$Keyword$$(null,"error-report","error-report",-2013083107);$cljs$cst$6402$subject$$=new $APP.$cljs$core$Keyword$$(null,"subject","subject",-1411880451);$cljs$cst$6400$owner_teams_with_people$$=new $APP.$cljs$core$Keyword$$(null,"owner-teams-with-people","owner-teams-with-people",-1234064148);
$cljs$cst$6412$subscription_name$$=new $APP.$cljs$core$Keyword$$(null,"subscription-name","subscription-name",-649250617);$cljs$cst$6409$current_subscription$$=new $APP.$cljs$core$Keyword$$(null,"current-subscription","current-subscription",-770910774);$cljs$cst$6404$feedback_disabled$$=new $APP.$cljs$core$Keyword$$(null,"feedback-disabled","feedback-disabled",232152321);$cljs$cst$6395$expires_at$$=new $APP.$cljs$core$Keyword$$(null,"expires-at","expires-at",1654982210);
$cljs$cst$6399$email_2$$=new $APP.$cljs$core$Keyword$$(null,"email-2","email-2",-1475431959);$cljs$cst$6397$email_1$$=new $APP.$cljs$core$Keyword$$(null,"email-1","email-1",1974791786);$cljs$cst$6394$expiration$$=new $APP.$cljs$core$Keyword$$(null,"expiration","expiration",238846697);$cljs$cst$6414$start_date$$=new $APP.$cljs$core$Keyword$$(null,"start-date","start-date",295168731);
$cljs$cst$6415$app_DOT_main_DOT_ui_DOT_settings_SLASH_dashboard$$=new $APP.$cljs$core$Keyword$$("app.main.ui.settings","dashboard","app.main.ui.settings/dashboard",-311373545);$cljs$cst$6405$send_user_feedback$$=new $APP.$cljs$core$Keyword$$(null,"send-user-feedback","send-user-feedback",-1832564578);$cljs$cst$6401$delete_account$$=new $APP.$cljs$core$Keyword$$(null,"delete-account","delete-account",725157341);
$cljs$cst$6407$redirect_to_payment_details$$=new $APP.$cljs$core$Keyword$$(null,"redirect-to-payment-details","redirect-to-payment-details",-1904019116);$cljs$cst$6408$subscription_type$$=new $APP.$cljs$core$Keyword$$(null,"subscription-type","subscription-type",1621034091);$cljs$cst$6406$min_members$$=new $APP.$cljs$core$Keyword$$(null,"min-members","min-members",1244570149);$cljs$cst$6392$expiration_date$$=new $APP.$cljs$core$Keyword$$(null,"expiration-date","expiration-date",-1266973669);
$cljs$cst$6398$changed$$=new $APP.$cljs$core$Keyword$$(null,"changed","changed",570724917);$cljs$cst$6413$subscription_success$$=new $APP.$cljs$core$Keyword$$(null,"subscription-success","subscription-success",150990068);$cljs$cst$6411$management_dialog$$=new $APP.$cljs$core$Keyword$$(null,"management-dialog","management-dialog",-1692469763);$cljs$cst$6396$access_token$$=new $APP.$cljs$core$Keyword$$(null,"access-token","access-token",-654201199);
$cljs$cst$6393$perms$$=new $APP.$cljs$core$Keyword$$(null,"perms","perms",-1384176260);var $app$main$ui$settings$access_tokens$clipboard_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_settings_access_tokens__clipboard-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-clipboard"})}),$app$main$ui$settings$access_tokens$close_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_settings_access_tokens__close-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-close"})}),$app$main$ui$settings$access_tokens$menu_icon$$=
(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_settings_access_tokens__menu-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-menu"})}),$app$main$ui$settings$access_tokens$tokens_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1175$access_tokens$$,$APP.$app$main$store$state$$),$app$main$ui$settings$access_tokens$token_created_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$3229$access_token_created$$,
$APP.$app$main$store$state$$),$app$main$ui$settings$access_tokens$schema_COLON_form$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"AccessTokenForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$723$name$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,250],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$6392$expiration_date$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,
250],null)],null)],null)],null),$app$main$ui$settings$access_tokens$initial_data$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$723$name$$,"",$cljs$cst$6392$expiration_date$$,"never"],null);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$51$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$51$$,$cljs$cst$6396$access_token$$,$app$main$ui$settings$access_tokens$access_token_modal$$)});
var $app$main$ui$settings$access_tokens$access_token_item$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($expires_at_map__89709_map__89709__$1_props_89708$$){$expires_at_map__89709_map__89709__$1_props_89708$$=$APP.$rumext$v2$util$wrap_props$$($expires_at_map__89709_map__89709__$1_props_89708$$);$expires_at_map__89709_map__89709__$1_props_89708$$=$APP.$cljs$core$__destructure_map$$($expires_at_map__89709_map__89709__$1_props_89708$$);var $token$jscomp$208$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($expires_at_map__89709_map__89709__$1_props_89708$$,
$APP.$cljs$cst$1134$token$$);$expires_at_map__89709_map__89709__$1_props_89708$$=$cljs$cst$6395$expires_at$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$208$$);var $expires_txt$$=$expires_at_map__89709_map__89709__$1_props_89708$$==null?null:$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($expires_at_map__89709_map__89709__$1_props_89708$$,"PPP"),$expired_QMARK_$jscomp$2$$=$expires_at_map__89709_map__89709__$1_props_89708$$!=null&&$APP.$app$common$time$now$$()>$expires_at_map__89709_map__89709__$1_props_89708$$,
$delete_fn$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$208$$)],function(){var $params$jscomp$463$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$208$$)],null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$delete_access_token$$($APP.$cljs$core$with_meta$$($params$jscomp$463$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2445$on_success$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$profile$fetch_access_tokens$$())}],null))))}),$on_delete$jscomp$21$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($delete_fn$jscomp$4$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2430$confirm$$,$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-acces-token.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-acces-token.message"),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-acces-token.accept"),$APP.$cljs$cst$2436$on_accept$$,$delete_fn$jscomp$4$$],null)))});return(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_settings_access_tokens__table-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__table-field main_ui_settings_access_tokens__field-name",children:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$208$$))}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__expiration-date "+($expired_QMARK_$jscomp$2$$?"main_ui_settings_access_tokens__expired":
""),children:$expires_at_map__89709_map__89709__$1_props_89708$$==null?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.access-tokens.no-expiration"):$expired_QMARK_$jscomp$2$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.access-tokens.expired-on",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$expires_txt$$])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.access-tokens.expires-on",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$expires_txt$$]))}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings_access_tokens__table-field main_ui_settings_access_tokens__actions",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$access_tokens$access_token_actions$$,{"on-delete":$on_delete$jscomp$21$$})})]})});var $app$main$ui$settings$change_email$schema_COLON_email_change_form$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$427$and$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"EmailChangeForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$cljs$cst$6397$email_1$$,$APP.$cljs$cst$942$app_DOT_common_DOT_schema_SLASH_email$$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$6399$email_2$$,$APP.$cljs$cst$942$app_DOT_common_DOT_schema_SLASH_email$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.invalid-email-confirmation")},
$APP.$cljs$cst$4410$error_SLASH_field$$,$cljs$cst$6399$email_2$$],null),function($data$jscomp$528_email_2$$){var $email_1$$=$cljs$cst$6397$email_1$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$528_email_2$$);$data$jscomp$528_email_2$$=$cljs$cst$6399$email_2$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$528_email_2$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($email_1$$,$data$jscomp$528_email_2$$)}],null)],null);
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$52$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$52$$,$APP.$cljs$cst$6070$change_email$$,$app$main$ui$settings$change_email$change_email_modal$$)});$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$53$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$53$$,$cljs$cst$6401$delete_account$$,$app$main$ui$settings$delete_account$delete_account_modal$$)});var $app$main$ui$settings$feedback$schema_COLON_feedback_form$$=new $APP.$cljs$core$PersistentVector$$(null,7,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"FeedbackForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$6402$subject$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,250],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$139$type$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$198$string$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,250],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1621$content$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,5E3],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$6403$error_report$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$],
null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$5160$error_href$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,2048],null)],null)],null)],null);var $app$main$ui$settings$notifications$default_notification_settings$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$3200$dashboard_comments$$,$APP.$cljs$cst$2106$all$$,$APP.$cljs$cst$3201$email_comments$$,$APP.$cljs$cst$2107$partial$$,$APP.$cljs$cst$3202$email_invites$$,$APP.$cljs$cst$2106$all$$],null),$app$main$ui$settings$notifications$schema_COLON_notifications_form$$=new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"NotificationsForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3200$dashboard_comments$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$955$app_DOT_common_DOT_schema_SLASH_one_of$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2106$all$$,
null,$APP.$cljs$cst$2107$partial$$,null,$APP.$cljs$cst$226$none$$,null],null),null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3201$email_comments$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$955$app_DOT_common_DOT_schema_SLASH_one_of$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2106$all$$,
null,$APP.$cljs$cst$2107$partial$$,null,$APP.$cljs$cst$226$none$$,null],null),null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3202$email_invites$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$955$app_DOT_common_DOT_schema_SLASH_one_of$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2106$all$$,
null,$APP.$cljs$cst$2107$partial$$,null,$APP.$cljs$cst$226$none$$,null],null),null)],null)],null)],null);var $app$main$ui$settings$options$schema_COLON_options_form$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"OptionsForm"],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2787$lang$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$198$string$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,20],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3177$theme$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$198$string$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,250],null)],null)],null)],null);var $app$main$ui$settings$password$schema_COLON_password_form$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$427$and$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"PasswordForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3195$password_1$$,
$APP.$cljs$cst$971$app_DOT_common_DOT_schema_SLASH_password$$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3196$password_2$$,$APP.$cljs$cst$971$app_DOT_common_DOT_schema_SLASH_password$$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3197$password_old$$,$APP.$cljs$cst$971$app_DOT_common_DOT_schema_SLASH_password$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$943$error_SLASH_code$$,"errors.password-invalid-confirmation",$APP.$cljs$cst$4410$error_SLASH_field$$,$APP.$cljs$cst$3196$password_2$$],null),function($p__89726_password_1$jscomp$1$$){var $map__89727__$1_password_2$jscomp$1$$=$APP.$cljs$core$__destructure_map$$($p__89726_password_1$jscomp$1$$);$p__89726_password_1$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89727__$1_password_2$jscomp$1$$,
$APP.$cljs$cst$3195$password_1$$);$map__89727__$1_password_2$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__89727__$1_password_2$jscomp$1$$,$APP.$cljs$cst$3196$password_2$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p__89726_password_1$jscomp$1$$,$map__89727__$1_password_2$jscomp$1$$)}],null)],null);var $app$main$ui$settings$profile$schema_COLON_profile_form$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"ProfileForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1349$fullname$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,250],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3176$email$$,$APP.$cljs$cst$942$app_DOT_common_DOT_schema_SLASH_email$$],null)],null);var $app$main$ui$settings$sidebar$arrow_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_settings_sidebar__arrow-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-arrow"})}),$app$main$ui$settings$sidebar$feedback_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_settings_sidebar__feedback-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-feedback"})}),$app$main$ui$settings$sidebar$sidebar$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_89736$$){var $profile$jscomp$88$$=
$props_89736$$.profile;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_settings_sidebar__dashboard-sidebar main_ui_settings_sidebar__settings",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$settings$sidebar$sidebar_content$$,{profile:$profile$jscomp$88$$,section:$props_89736$$.section}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$dashboard$sidebar$profile_section_STAR_$$,{profile:$profile$jscomp$88$$})]})});$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$54$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$54$$,$cljs$cst$6411$management_dialog$$,$app$main$ui$settings$subscription$subscribe_management_dialog$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$55$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$55$$,$cljs$cst$6413$subscription_success$$,$app$main$ui$settings$subscription$subscription_success_dialog$$)});var $app$main$ui$settings$header$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return(0,$APP.$rumext$v2$jsx$$)("header",{"data-testid":"dashboard-header",className:"main_ui_settings__dashboard-header",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_settings__dashboard-title",children:(0,$APP.$rumext$v2$jsx$$)("h1",{"data-testid":"account-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-account-title")})})})});
//# sourceMappingURL=main-settings.js.map
