import { $APP, shadow$provide } from "./shared.js";
const shadow_esm_import = function(x) { return import(x) };
var $app$util$webapi$observe_resize$$,$app$main$data$fonts$chunk_array$$,$app$util$sse$progress_QMARK_$$,$app$main$data$dashboard$builtin_templates_fetched$$,$app$main$data$plugins$delay_open_plugin$$,$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$dashboard$stop_edit_file_name$$,$app$main$data$dashboard$start_edit_file_name$$,$app$main$data$dashboard$show_file_menu_with_position$$,$app$main$data$fonts$add_font$$,$app$main$data$dashboard$file_deleted$$,$app$main$data$dashboard$projects_fetched$$,
$app$main$data$common$clear_progress$$,$app$main$data$dashboard$deleted_files_fetched$$,$app$main$data$dashboard$recent_files_fetched$$,$app$main$data$project$files_fetched$$,$app$main$data$team$stats_fetched$$,$app$main$data$common$toggle_progress_visibility$$,$app$main$data$common$update_progress$$,$app$main$data$dashboard$toggle_file_select$$,$app$main$data$dashboard$clear_selected_files$$,$app$main$data$dashboard$hide_file_menu$$,$app$main$data$dashboard$delete_file$$,$app$main$data$dashboard$fetch_deleted_files$cljs$0core$0IFn$0_invoke$0arity$01$$,
$app$main$data$dashboard$fetch_builtin_templates$$,$app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$data$dashboard$fetch_projects$$,$app$main$data$project$fetch_files$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$data$team$fetch_stats$$,$app$main$data$dashboard$set_file_shared$$,$app$main$data$dashboard$rename_file$$,$app$main$data$fonts$calculate_family_to_id_mapping$$,$app$main$data$fonts$rename_and_regroup$$,$app$main$data$fonts$merge_and_group_fonts$$,
$app$main$data$fonts$update_font$$,$app$common$media$parse_font_weight$$,$app$main$data$fonts$delete_font_variant$$,$app$main$data$fonts$delete_font$$,$app$main$data$common$initialize_progress$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$app$main$data$team$delete_invitation$$,$app$main$data$dashboard$set_file_thumbnail$$,$app$main$ui$hooks$use_dynamic_grid_item_width$cljs$0core$0IFn$0_invoke$0arity$01$$,$cljs$core$partition_all$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$ui$dashboard$subscription$show_subscription_members_banner_QMARK_$$,
$app$main$data$dashboard$handle_change_team_org$$,$app$main$data$common$go_to_dashboard_deleted$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$app$main$data$dashboard$open_selected_file$$,$app$main$ui$dashboard$team$webhooks_list_STAR_$$,$app$main$ui$dashboard$team$webhooks_hero_STAR_$$,$app$main$ui$dashboard$team$empty_invitation_table_STAR_$$,$app$main$ui$dashboard$team$team_members_STAR_$$,$app$main$ui$dashboard$team$webhooks_page_STAR_$$,$app$main$ui$dashboard$subscription$members_cta_STAR_$$,$app$main$ui$dashboard$team$team_members_page_STAR_$$,
$app$main$ui$dashboard$subscription$team_STAR_$$,$app$main$data$dashboard$restore_files$$,$app$main$data$dashboard$restore_project_immediately$$,$app$main$data$dashboard$restore_files_immediately$$,$app$main$data$dashboard$delete_files$$,$app$main$data$dashboard$delete_project_immediately$$,$app$main$data$dashboard$delete_files_immediately$$,$app$main$data$dashboard$duplicate_file$$,$app$main$data$dashboard$create_file$$,$app$main$data$dashboard$create_project$$,$app$main$data$fonts$process_upload$$,
$app$main$data$team$update_team_photo$$,$app$main$ui$dashboard$team$team_settings_page_STAR_$$,$app$main$data$dashboard$handle_change_team_role$$,$app$main$data$dashboard$process_message$$,$app$main$data$dashboard$initialize$$,$app$main$fonts$render_font_styles$$,$app$main$data$dashboard$search$$,$app$main$ui$dashboard$team$invitation_section_STAR_$$,$app$main$ui$dashboard$team$team_invitations_page_STAR_$$,$app$main$ui$components$progress$progress_notification_widget_STAR_$$,$app$main$ui$components$portal$portal_on_document_STAR_$$,
$app$main$ui$dashboard$file_menu$get_project_name$$,$app$main$ui$dashboard$file_menu$get_project_id$$,$app$main$ui$dashboard$file_menu$get_team_name$$,$app$main$ui$dashboard$file_menu$group_by_team$$,$app$main$ui$dashboard$file_menu$file_menu_STAR_$$,$app$main$ui$ds$product$empty_placeholder$empty_placeholder_STAR_$$,$app$main$ui$dashboard$placeholder$empty_project_placeholder_STAR_$$,$app$main$ui$dashboard$placeholder$make_has_other_files_or_projects_ref$$,$app$main$ui$dashboard$placeholder$empty_grid_placeholder_STAR_$$,
$app$main$ui$dashboard$placeholder$loading_placeholder_STAR_$$,$app$main$ui$dashboard$grid$persist_thumbnail$$,$app$main$ui$dashboard$grid$render_thumbnail$$,$app$main$ui$dashboard$grid$grid_item_thumbnail_STAR_$$,$app$main$ui$dashboard$grid$grid_item_library_STAR_$$,$app$main$ui$dashboard$grid$grid_item_metadata_STAR_$$,$app$main$ui$dashboard$grid$create_counter_element$$,$app$main$ui$dashboard$grid$grid_item_STAR_$$,$app$main$ui$dashboard$grid$grid_STAR_$$,$app$main$ui$dashboard$grid$line_grid_row$$,
$app$main$ui$dashboard$grid$line_grid$$,$app$main$ui$dashboard$deleted$on_restore_project$$,$app$main$ui$dashboard$deleted$on_delete_project$$,$app$main$ui$dashboard$deleted$header_STAR_$$,$app$main$ui$dashboard$deleted$project_context_menu_STAR_$$,$app$main$ui$dashboard$deleted$deleted_project_item_STAR_$$,$app$main$ui$dashboard$deleted$menu_STAR_$$,$app$main$ui$dashboard$deleted$deleted_section_STAR_$$,$app$main$ui$dashboard$pin_button$pin_button_STAR_$$,$app$main$ui$dashboard$files$header_STAR_$$,
$app$main$ui$dashboard$files$files_section_STAR_$$,$app$main$ui$dashboard$fonts$use_page_title$$,$app$main$ui$dashboard$fonts$bad_font_family_tmp_QMARK_$$,$app$main$ui$dashboard$fonts$font_variant_display_name_STAR_$$,$app$main$ui$dashboard$fonts$uploaded_fonts_STAR_$$,$app$main$ui$dashboard$fonts$installed_font_context_menu$$,$app$main$ui$dashboard$fonts$installed_fonts_STAR_$$,$app$main$ui$dashboard$fonts$fonts_page_STAR_$$,$app$main$ui$dashboard$fonts$font_providers_page_STAR_$$,$app$main$ui$dashboard$libraries$libraries_page_STAR_$$,
$app$main$ui$dashboard$projects$project_item_STAR_$$,$app$main$ui$dashboard$projects$projects_section_STAR_$$,$app$main$ui$dashboard$search$search_page_STAR_$$,$app$main$ui$dashboard$templates$import_template_BANG_$$,$app$main$ui$dashboard$templates$title_STAR_$$,$app$main$ui$dashboard$templates$card_item$$,$app$main$ui$dashboard$templates$card_item_link$$,$app$main$ui$dashboard$templates$templates_section_STAR_$$,$app$main$ui$dashboard$dashboard_content_STAR_$$,$app$main$ui$dashboard$use_plugin_register$$,
$app$main$ui$dashboard$use_templates_import$$,$app$main$ui$dashboard$dashboard_STAR_$$,$app$main$data$common$initialize_progress_52198$$,$app$main$data$common$update_progress_52211$$,$app$main$data$common$toggle_progress_visibility_52217$$,$app$main$data$common$clear_progress_52225$$,$app$main$data$common$go_to_dashboard_deleted_52395$$,$app$main$data$plugins$delay_open_plugin_54729$$,$app$main$data$team$stats_fetched_55054$$,$app$main$data$team$fetch_stats_55057$$,$app$main$data$team$update_team_photo_55075$$,
$app$main$data$team$delete_invitation_55209$$,$app$main$data$fonts$add_font_54967$$,$app$main$data$fonts$update_font_54972$$,$app$main$data$fonts$delete_font_54980$$,$app$main$data$fonts$delete_font_variants_54994$$,$app$main$data$project$files_fetched_54907$$,$app$main$data$project$fetch_files_54918$$,$app$main$data$dashboard$initialize_70960$$,$app$main$data$dashboard$projects_fetched_70968$$,$app$main$data$dashboard$fetch_projects_70977$$,$app$main$data$dashboard$search_70982$$,$app$main$data$dashboard$recent_files_fetched_70989$$,
$app$main$data$dashboard$fetch_recent_files_71000$$,$app$main$data$dashboard$libraries_fetched_71020$$,$app$main$data$dashboard$fetch_builtin_templates_71030$$,$app$main$data$dashboard$deleted_files_fetched_71040$$,$app$main$data$dashboard$fetch_deleted_files_71061$$,$app$main$data$dashboard$clear_file_select_71065$$,$app$main$data$dashboard$toggle_file_select_71076$$,$app$main$data$dashboard$show_file_menu_with_position_71085$$,$app$main$data$dashboard$hide_file_menu_71097$$,$app$main$data$dashboard$start_edit_file_menu_71100$$,
$app$main$data$dashboard$stop_edit_file_name_71105$$,$app$main$data$dashboard$create_project_71126$$,$app$main$data$dashboard$file_deleted_71192$$,$app$main$data$dashboard$delete_file_71201$$,$app$main$data$dashboard$rename_file_71217$$,$app$main$data$dashboard$set_file_shared_71232$$,$app$main$data$dashboard$set_file_thumbnail_71245$$,$app$main$data$dashboard$create_file_71279$$,$app$main$data$dashboard$duplicate_file_71299$$,$app$main$data$dashboard$open_selected_file_71377$$,$app$main$data$dashboard$handle_change_team_role_71391$$,
$app$main$data$dashboard$handle_change_team_org_71403$$,$app$main$data$dashboard$delete_files_71434$$,$app$main$data$dashboard$delete_files_immediately_71454$$,$app$main$data$dashboard$delete_project_immediately_71474$$,$app$main$data$dashboard$restore_files_71497$$,$app$main$data$dashboard$restore_files_immediately_71525$$,$app$main$data$dashboard$restore_project_immediately_71545$$,$cljs$cst$6061$app_DOT_main_DOT_ui_DOT_dashboard_DOT_projects_SLASH_dashboard$$,$cljs$cst$6044$search$$,$cljs$cst$6045$get_all_projects$$,
$cljs$cst$6052$can_restore$$,$cljs$cst$6043$is_default_team$$,$cljs$cst$6062$app_DOT_main_DOT_ui_DOT_dashboard_DOT_templates_SLASH_collapsed$$,$cljs$cst$6065$app_DOT_main_DOT_ui_DOT_dashboard_SLASH_dashboard$$,$cljs$cst$6047$thumbnails_SLASH_generate_for_file_wasm$$,$cljs$cst$6054$has_files$$,$cljs$cst$6051$limit$$,$cljs$cst$6053$create_fn$$,$cljs$cst$6049$file_if$$,$cljs$cst$6056$font_family_tmp$$,$cljs$cst$6048$thumbnails_SLASH_generate_for_file$$,$cljs$cst$6059$app_DOT_main_DOT_ui_DOT_dashboard_DOT_libraries_SLASH_dashboard$$,
$cljs$cst$6050$sample$$,$cljs$cst$6060$app_DOT_main_DOT_ui_DOT_dashboard_DOT_projects_SLASH_show_team_hero$$,$cljs$cst$6057$create_font_variant$$,$cljs$cst$6055$app_DOT_main_DOT_ui_DOT_dashboard_DOT_files_SLASH_dashboard$$,$cljs$cst$6058$providers$$;
$app$util$webapi$observe_resize$$=function($node$jscomp$164$$){return $APP.$beicon$v2$core$create$$(function($subs$jscomp$9$$){var $obs$jscomp$2$$=new ResizeObserver(function($entries$jscomp$10$$){return $subs$jscomp$9$$.next($entries$jscomp$10$$)});$obs$jscomp$2$$.observe($node$jscomp$164$$);return function(){return $obs$jscomp$2$$.disconnect()}})};
$app$main$data$fonts$chunk_array$$=function($data$jscomp$291$$){for(var $total_size$jscomp$1$$=$data$jscomp$291$$.length,$offset$jscomp$163$$=0,$G__55039_chunks$$=$APP.$cljs$core$PersistentVector$EMPTY$$;;)if($offset$jscomp$163$$<$total_size$jscomp$1$$){var $end$jscomp$82$$,$G__55038_x__5113__auto__$jscomp$inline_9137$$=$offset$jscomp$163$$+4194304;$G__55038_x__5113__auto__$jscomp$inline_9137$$=$end$jscomp$82$$=$G__55038_x__5113__auto__$jscomp$inline_9137$$<$total_size$jscomp$1$$?$G__55038_x__5113__auto__$jscomp$inline_9137$$:
$total_size$jscomp$1$$;$G__55039_chunks$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__55039_chunks$$,$data$jscomp$291$$.subarray($offset$jscomp$163$$,$end$jscomp$82$$));$offset$jscomp$163$$=$G__55038_x__5113__auto__$jscomp$inline_9137$$}else return $G__55039_chunks$$};$app$util$sse$progress_QMARK_$$=function($event$jscomp$48$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("progress",$event$jscomp$48$$.type)};
$app$main$data$dashboard$builtin_templates_fetched$$=function($libraries$jscomp$98$$){typeof $app$main$data$dashboard$libraries_fetched_71020$$==="undefined"&&($app$main$data$dashboard$libraries_fetched_71020$$=function($libraries$jscomp$99$$,$meta71021$$){this.libraries=$libraries$jscomp$99$$;this.$meta71021$=$meta71021$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$libraries_fetched_71020$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$libraries_fetched_71020$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4728$app_DOT_main_DOT_data_DOT_dashboard_SLASH_libraries_fetched$$},$app$main$data$dashboard$libraries_fetched_71020$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71022$$,$meta71021__$1$$){return new $app$main$data$dashboard$libraries_fetched_71020$$(this.libraries,$meta71021__$1$$)},$app$main$data$dashboard$libraries_fetched_71020$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71021$},$app$main$data$dashboard$libraries_fetched_71020$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$libraries_fetched_71020$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2605$$,$state$jscomp$935$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$935$$,$APP.$cljs$cst$4729$builtin_templates$$,this.libraries)});return new $app$main$data$dashboard$libraries_fetched_71020$$($libraries$jscomp$98$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$plugins$delay_open_plugin$$=function($plugin$jscomp$2$$){typeof $app$main$data$plugins$delay_open_plugin_54729$$==="undefined"&&($app$main$data$plugins$delay_open_plugin_54729$$=function($plugin$jscomp$3$$,$meta54730$$){this.$plugin$=$plugin$jscomp$3$$;this.$meta54730$=$meta54730$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$plugins$delay_open_plugin_54729$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$plugins$delay_open_plugin_54729$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3149$app_DOT_main_DOT_data_DOT_plugins_SLASH_delay_open_plugin$$},$app$main$data$plugins$delay_open_plugin_54729$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54731$$,$meta54730__$1$$){return new $app$main$data$plugins$delay_open_plugin_54729$$(this.$plugin$,$meta54730__$1$$)},$app$main$data$plugins$delay_open_plugin_54729$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54730$},$app$main$data$plugins$delay_open_plugin_54729$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$plugins$delay_open_plugin_54729$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1649$$,$state$jscomp$182$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$182$$,$APP.$cljs$cst$3150$app_DOT_main_DOT_data_DOT_plugins_SLASH_open_plugin$$,$APP.$cljs$cst$1704$plugin_id$$.$cljs$core$IFn$_invoke$arity$1$(this.$plugin$))});
return new $app$main$data$plugins$delay_open_plugin_54729$$($plugin$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$03$$=function(){return function(){function $G__29624__3$$($x$jscomp$605$$,$y$jscomp$255$$,$z$jscomp$96$$){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$3$($x$jscomp$605$$,$y$jscomp$255$$,$z$jscomp$96$$):(0,$APP.$cljs$cst$1742$font_family$$)($x$jscomp$605$$,$y$jscomp$255$$,
$z$jscomp$96$$),$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$3$($x$jscomp$605$$,$y$jscomp$255$$,$z$jscomp$96$$):(0,$APP.$cljs$cst$1745$font_weight$$)($x$jscomp$605$$,$y$jscomp$255$$,$z$jscomp$96$$),$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$3$($x$jscomp$605$$,$y$jscomp$255$$,$z$jscomp$96$$):(0,$APP.$cljs$cst$1746$font_style$$)($x$jscomp$605$$,
$y$jscomp$255$$,$z$jscomp$96$$)],null)}function $G__29624__2$$($x$jscomp$604$$,$y$jscomp$254$$){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$604$$,$y$jscomp$254$$):(0,$APP.$cljs$cst$1742$font_family$$)($x$jscomp$604$$,$y$jscomp$254$$),$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$604$$,
$y$jscomp$254$$):(0,$APP.$cljs$cst$1745$font_weight$$)($x$jscomp$604$$,$y$jscomp$254$$),$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$604$$,$y$jscomp$254$$):(0,$APP.$cljs$cst$1746$font_style$$)($x$jscomp$604$$,$y$jscomp$254$$)],null)}function $G__29624__1$$($x$jscomp$603$$){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$?
$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($x$jscomp$603$$):(0,$APP.$cljs$cst$1742$font_family$$)($x$jscomp$603$$),$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($x$jscomp$603$$):(0,$APP.$cljs$cst$1745$font_weight$$)($x$jscomp$603$$),$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($x$jscomp$603$$):(0,$APP.$cljs$cst$1746$font_style$$)($x$jscomp$603$$)],
null)}function $G__29624__0$$(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$0$?$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$0$():(0,$APP.$cljs$cst$1742$font_family$$)(),$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$0$?$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$0$():(0,$APP.$cljs$cst$1745$font_weight$$)(),$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$0$?
$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$0$():(0,$APP.$cljs$cst$1746$font_style$$)()],null)}var $G__29624$$=null,$G__29624__4$$=function(){function $G__29627$$($x$jscomp$607$$,$y$jscomp$257$$,$z$jscomp$98$$,$var_args$jscomp$270$$){var $G__29629__i_args$jscomp$100$$=null;if(arguments.length>3){$G__29629__i_args$jscomp$100$$=0;for(var $G__29629__a$$=Array(arguments.length-3);$G__29629__i_args$jscomp$100$$<$G__29629__a$$.length;)$G__29629__a$$[$G__29629__i_args$jscomp$100$$]=arguments[$G__29629__i_args$jscomp$100$$+
3],++$G__29629__i_args$jscomp$100$$;$G__29629__i_args$jscomp$100$$=new $APP.$cljs$core$IndexedSeq$$($G__29629__a$$,0,null)}return $G__29627__delegate$$.call(this,$x$jscomp$607$$,$y$jscomp$257$$,$z$jscomp$98$$,$G__29629__i_args$jscomp$100$$)}function $G__29627__delegate$$($x$jscomp$606$$,$y$jscomp$256$$,$z$jscomp$97$$,$args$jscomp$99$$){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$cst$1742$font_family$$,
$x$jscomp$606$$,$y$jscomp$256$$,$z$jscomp$97$$,$args$jscomp$99$$),$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$cst$1745$font_weight$$,$x$jscomp$606$$,$y$jscomp$256$$,$z$jscomp$97$$,$args$jscomp$99$$),$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$cst$1746$font_style$$,$x$jscomp$606$$,$y$jscomp$256$$,$z$jscomp$97$$,$args$jscomp$99$$)],null)}$G__29627$$.$cljs$lang$maxFixedArity$=3;$G__29627$$.$cljs$lang$applyTo$=function($arglist__29630_args$jscomp$101$$){var $x$jscomp$608$$=
$APP.$cljs$core$first$$($arglist__29630_args$jscomp$101$$);$arglist__29630_args$jscomp$101$$=$APP.$cljs$core$next$$($arglist__29630_args$jscomp$101$$);var $y$jscomp$258$$=$APP.$cljs$core$first$$($arglist__29630_args$jscomp$101$$);$arglist__29630_args$jscomp$101$$=$APP.$cljs$core$next$$($arglist__29630_args$jscomp$101$$);var $z$jscomp$99$$=$APP.$cljs$core$first$$($arglist__29630_args$jscomp$101$$);$arglist__29630_args$jscomp$101$$=$APP.$cljs$core$rest$$($arglist__29630_args$jscomp$101$$);return $G__29627__delegate$$($x$jscomp$608$$,
$y$jscomp$258$$,$z$jscomp$99$$,$arglist__29630_args$jscomp$101$$)};$G__29627$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__29627__delegate$$;return $G__29627$$}();$G__29624$$=function($x$jscomp$609$$,$y$jscomp$259$$,$z$jscomp$100$$,$var_args$jscomp$271$$){switch(arguments.length){case 0:return $G__29624__0$$.call(this);case 1:return $G__29624__1$$.call(this,$x$jscomp$609$$);case 2:return $G__29624__2$$.call(this,$x$jscomp$609$$,$y$jscomp$259$$);case 3:return $G__29624__3$$.call(this,$x$jscomp$609$$,
$y$jscomp$259$$,$z$jscomp$100$$);default:var $G__29631_G__29632__i$$=null;if(arguments.length>3){$G__29631_G__29632__i$$=0;for(var $G__29632__a$$=Array(arguments.length-3);$G__29631_G__29632__i$$<$G__29632__a$$.length;)$G__29632__a$$[$G__29631_G__29632__i$$]=arguments[$G__29631_G__29632__i$$+3],++$G__29631_G__29632__i$$;$G__29631_G__29632__i$$=new $APP.$cljs$core$IndexedSeq$$($G__29632__a$$,0,null)}return $G__29624__4$$.$cljs$core$IFn$_invoke$arity$variadic$($x$jscomp$609$$,$y$jscomp$259$$,$z$jscomp$100$$,
$G__29631_G__29632__i$$)}throw Error("Invalid arity: "+arguments.length);};$G__29624$$.$cljs$lang$maxFixedArity$=3;$G__29624$$.$cljs$lang$applyTo$=$G__29624__4$$.$cljs$lang$applyTo$;$G__29624$$.$cljs$core$IFn$_invoke$arity$0$=$G__29624__0$$;$G__29624$$.$cljs$core$IFn$_invoke$arity$1$=$G__29624__1$$;$G__29624$$.$cljs$core$IFn$_invoke$arity$2$=$G__29624__2$$;$G__29624$$.$cljs$core$IFn$_invoke$arity$3$=$G__29624__3$$;$G__29624$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__29624__4$$.$cljs$core$IFn$_invoke$arity$variadic$;
return $G__29624$$}()};
$app$main$data$dashboard$stop_edit_file_name$$=function(){typeof $app$main$data$dashboard$stop_edit_file_name_71105$$==="undefined"&&($app$main$data$dashboard$stop_edit_file_name_71105$$=function($meta71106$$){this.$meta71106$=$meta71106$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$stop_edit_file_name_71105$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$stop_edit_file_name_71105$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4745$app_DOT_main_DOT_data_DOT_dashboard_SLASH_stop_edit_file_name$$},
$app$main$data$dashboard$stop_edit_file_name_71105$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71107$$,$meta71106__$1$$){return new $app$main$data$dashboard$stop_edit_file_name_71105$$($meta71106__$1$$)},$app$main$data$dashboard$stop_edit_file_name_71105$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71106$},$app$main$data$dashboard$stop_edit_file_name_71105$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$stop_edit_file_name_71105$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2615$$,$state$jscomp$944$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$944$$,$APP.$cljs$cst$2145$dashboard_local$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2161$edition$$,!1)});return new $app$main$data$dashboard$stop_edit_file_name_71105$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$start_edit_file_name$$=function($file_id$jscomp$289$$){typeof $app$main$data$dashboard$start_edit_file_menu_71100$$==="undefined"&&($app$main$data$dashboard$start_edit_file_menu_71100$$=function($file_id$jscomp$290$$,$meta71101$$){this.$file_id$=$file_id$jscomp$290$$;this.$meta71101$=$meta71101$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$start_edit_file_menu_71100$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$start_edit_file_menu_71100$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4744$app_DOT_main_DOT_data_DOT_dashboard_SLASH_start_edit_file_menu$$},$app$main$data$dashboard$start_edit_file_menu_71100$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71102$$,$meta71101__$1$$){return new $app$main$data$dashboard$start_edit_file_menu_71100$$(this.$file_id$,$meta71101__$1$$)},$app$main$data$dashboard$start_edit_file_menu_71100$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71101$},$app$main$data$dashboard$start_edit_file_menu_71100$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$start_edit_file_menu_71100$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2614$$,$state$jscomp$943$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$943$$,$APP.$cljs$cst$2145$dashboard_local$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2161$edition$$,
!0,$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.$file_id$]))});return new $app$main$data$dashboard$start_edit_file_menu_71100$$($file_id$jscomp$289$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$show_file_menu_with_position$$=function($file_id$jscomp$287$$,$pos$jscomp$125$$){typeof $app$main$data$dashboard$show_file_menu_with_position_71085$$==="undefined"&&($app$main$data$dashboard$show_file_menu_with_position_71085$$=function($file_id$jscomp$288$$,$pos$jscomp$126$$,$meta71086$$){this.$file_id$=$file_id$jscomp$288$$;this.pos=$pos$jscomp$126$$;this.$meta71086$=$meta71086$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$dashboard$show_file_menu_with_position_71085$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$show_file_menu_with_position_71085$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4741$app_DOT_main_DOT_data_DOT_dashboard_SLASH_show_file_menu_with_position$$},$app$main$data$dashboard$show_file_menu_with_position_71085$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71087$$,$meta71086__$1$$){return new $app$main$data$dashboard$show_file_menu_with_position_71085$$(this.$file_id$,
this.pos,$meta71086__$1$$)},$app$main$data$dashboard$show_file_menu_with_position_71085$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71086$},$app$main$data$dashboard$show_file_menu_with_position_71085$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$show_file_menu_with_position_71085$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2611$$,$state$jscomp$940$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$940$$,
$APP.$cljs$cst$2145$dashboard_local$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!0,$APP.$cljs$cst$4739$menu_pos$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.pos,$APP.$cljs$cst$1628$file_id$$,this.$file_id$]))});return new $app$main$data$dashboard$show_file_menu_with_position_71085$$($file_id$jscomp$287$$,$pos$jscomp$125$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$fonts$add_font$$=function($font$jscomp$33$$){typeof $app$main$data$fonts$add_font_54967$$==="undefined"&&($app$main$data$fonts$add_font_54967$$=function($font$jscomp$34$$,$meta54968$$){this.font=$font$jscomp$34$$;this.$meta54968$=$meta54968$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$fonts$add_font_54967$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$add_font_54967$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3375$app_DOT_main_DOT_data_DOT_fonts_SLASH_add_font$$},$app$main$data$fonts$add_font_54967$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54969$$,$meta54968__$1$$){return new $app$main$data$fonts$add_font_54967$$(this.font,$meta54968__$1$$)},$app$main$data$fonts$add_font_54967$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54968$},$app$main$data$fonts$add_font_54967$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$fonts$add_font_54967$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1776$$,$state$jscomp$261$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$261$$,$APP.$cljs$cst$2987$fonts$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$(this.font),this.font)},$app$main$data$fonts$add_font_54967$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$add_font_54967$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$1777_team_id$jscomp$71$$,$state$jscomp$262$$){$_$jscomp$1777_team_id$jscomp$71$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$262$$);return(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,6,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-font",$APP.$cljs$cst$1912$team_id$$,
$_$jscomp$1777_team_id$jscomp$71$$,$APP.$cljs$cst$1741$font_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$(this.font),$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$(this.font),$APP.$cljs$cst$1746$font_style$$,$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$(this.font),$APP.$cljs$cst$1745$font_weight$$,$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$(this.font)],null)))});return new $app$main$data$fonts$add_font_54967$$($font$jscomp$33$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$file_deleted$$=function($project_id$jscomp$18$$){typeof $app$main$data$dashboard$file_deleted_71192$$==="undefined"&&($app$main$data$dashboard$file_deleted_71192$$=function($project_id$jscomp$19$$,$meta71193$$){this.$project_id$=$project_id$jscomp$19$$;this.$meta71193$=$meta71193$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$file_deleted_71192$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$file_deleted_71192$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4761$app_DOT_main_DOT_data_DOT_dashboard_SLASH_file_deleted$$},$app$main$data$dashboard$file_deleted_71192$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71194$$,$meta71193__$1$$){return new $app$main$data$dashboard$file_deleted_71192$$(this.$project_id$,$meta71193__$1$$)},$app$main$data$dashboard$file_deleted_71192$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71193$},$app$main$data$dashboard$file_deleted_71192$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$file_deleted_71192$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2630$$,$state$jscomp$953$$){return $APP.$app$common$data$update_in_when$$($state$jscomp$953$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1913$projects$$,this.$project_id$,
$APP.$cljs$cst$1078$count$$],null),$APP.$cljs$core$dec$$)});return new $app$main$data$dashboard$file_deleted_71192$$($project_id$jscomp$18$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$projects_fetched$$=function($projects$jscomp$1$$){typeof $app$main$data$dashboard$projects_fetched_70968$$==="undefined"&&($app$main$data$dashboard$projects_fetched_70968$$=function($projects$jscomp$2$$,$meta70969$$){this.projects=$projects$jscomp$2$$;this.$meta70969$=$meta70969$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$projects_fetched_70968$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$projects_fetched_70968$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4718$app_DOT_main_DOT_data_DOT_dashboard_SLASH_projects_fetched$$},$app$main$data$dashboard$projects_fetched_70968$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70970$$,$meta70969__$1$$){return new $app$main$data$dashboard$projects_fetched_70968$$(this.projects,$meta70969__$1$$)},$app$main$data$dashboard$projects_fetched_70968$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70969$},$app$main$data$dashboard$projects_fetched_70968$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$projects_fetched_70968$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2599$$,$state$jscomp$930$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($state__$1$jscomp$50$$,$map__70974__$1_p__70973$$){$map__70974__$1_p__70973$$=$APP.$cljs$core$__destructure_map$$($map__70974__$1_p__70973$$);
var $id$jscomp$779$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70974__$1_p__70973$$,$APP.$cljs$cst$266$id$$);return $APP.$cljs$core$assoc_in$$($state__$1$jscomp$50$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1913$projects$$,$id$jscomp$779$$],null),$map__70974__$1_p__70973$$)},$state$jscomp$930$$,this.projects)});return new $app$main$data$dashboard$projects_fetched_70968$$($projects$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$clear_progress$$=function(){typeof $app$main$data$common$clear_progress_52225$$==="undefined"&&($app$main$data$common$clear_progress_52225$$=function($meta52226$$){this.$meta52226$=$meta52226$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$clear_progress_52225$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$clear_progress_52225$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$2464$app_DOT_main_DOT_data_DOT_common_SLASH_clear_progress$$},$app$main$data$common$clear_progress_52225$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52227$$,$meta52226__$1$$){return new $app$main$data$common$clear_progress_52225$$($meta52226__$1$$)},$app$main$data$common$clear_progress_52225$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta52226$},$app$main$data$common$clear_progress_52225$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$clear_progress_52225$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1543$$,$state$jscomp$128$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$128$$,$APP.$cljs$cst$2204$progress$$)});return new $app$main$data$common$clear_progress_52225$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$deleted_files_fetched$$=function($files$jscomp$15$$){typeof $app$main$data$dashboard$deleted_files_fetched_71040$$==="undefined"&&($app$main$data$dashboard$deleted_files_fetched_71040$$=function($files$jscomp$16$$,$meta71041$$){this.files=$files$jscomp$16$$;this.$meta71041$=$meta71041$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$deleted_files_fetched_71040$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$deleted_files_fetched_71040$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4732$app_DOT_main_DOT_data_DOT_dashboard_SLASH_deleted_files_fetched$$},$app$main$data$dashboard$deleted_files_fetched_71040$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71042$$,$meta71041__$1$$){return new $app$main$data$dashboard$deleted_files_fetched_71040$$(this.files,$meta71041__$1$$)},$app$main$data$dashboard$deleted_files_fetched_71040$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71041$},$app$main$data$dashboard$deleted_files_fetched_71040$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$deleted_files_fetched_71040$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2607_files__$1$jscomp$3_filtered_files$$,$state$jscomp$936$$){var $now$jscomp$6$$=$APP.$app$common$time$now$$();$_$jscomp$2607_files__$1$jscomp$3_filtered_files$$=$APP.$cljs$core$filterv$$(function($file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$){$file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$=
$APP.$cljs$cst$4733$will_be_deleted_at$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$);var $JSCompiler_temp$jscomp$1929$$;($JSCompiler_temp$jscomp$1929$$=$file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$==null)||($file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$=$APP.$cljs$core$compare$$($file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$,$now$jscomp$6$$),$JSCompiler_temp$jscomp$1929$$=$file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$<
0?!1:$file$jscomp$76_result$jscomp$inline_9141_will_be_deleted_at$$===0?!1:!0);return $JSCompiler_temp$jscomp$1929$$},this.files);$_$jscomp$2607_files__$1$jscomp$3_filtered_files$$=$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,$_$jscomp$2607_files__$1$jscomp$3_filtered_files$$);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$936$$,$APP.$cljs$cst$4734$deleted_files$$,
$_$jscomp$2607_files__$1$jscomp$3_filtered_files$$),$APP.$cljs$cst$1901$files$$,$APP.$app$common$data$merge$$,$_$jscomp$2607_files__$1$jscomp$3_filtered_files$$)});return new $app$main$data$dashboard$deleted_files_fetched_71040$$($files$jscomp$15$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$recent_files_fetched$$=function($files$jscomp$13$$){typeof $app$main$data$dashboard$recent_files_fetched_70989$$==="undefined"&&($app$main$data$dashboard$recent_files_fetched_70989$$=function($files$jscomp$14$$,$meta70990$$){this.files=$files$jscomp$14$$;this.$meta70990$=$meta70990$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$recent_files_fetched_70989$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$recent_files_fetched_70989$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4724$app_DOT_main_DOT_data_DOT_dashboard_SLASH_recent_files_fetched$$},$app$main$data$dashboard$recent_files_fetched_70989$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70991$$,$meta70990__$1$$){return new $app$main$data$dashboard$recent_files_fetched_70989$$(this.files,$meta70990__$1$$)},$app$main$data$dashboard$recent_files_fetched_70989$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70990$},$app$main$data$dashboard$recent_files_fetched_70989$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$recent_files_fetched_70989$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2603_files__$1$jscomp$2$$,$state$jscomp$933$$){$_$jscomp$2603_files__$1$jscomp$2$$=$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,this.files);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$933$$,
$APP.$cljs$cst$4725$recent_files$$,$_$jscomp$2603_files__$1$jscomp$2$$),$APP.$cljs$cst$1901$files$$,$APP.$app$common$data$merge$$,$_$jscomp$2603_files__$1$jscomp$2$$)});return new $app$main$data$dashboard$recent_files_fetched_70989$$($files$jscomp$13$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$project$files_fetched$$=function($project_id$jscomp$10$$,$files$jscomp$11$$){typeof $app$main$data$project$files_fetched_54907$$==="undefined"&&($app$main$data$project$files_fetched_54907$$=function($project_id$jscomp$11$$,$files$jscomp$12$$,$meta54908$$){this.$project_id$=$project_id$jscomp$11$$;this.files=$files$jscomp$12$$;this.$meta54908$=$meta54908$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$project$files_fetched_54907$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$project$files_fetched_54907$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3388$app_DOT_main_DOT_data_DOT_project_SLASH_files_fetched$$},$app$main$data$project$files_fetched_54907$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54909$$,$meta54908__$1$$){return new $app$main$data$project$files_fetched_54907$$(this.$project_id$,this.files,$meta54908__$1$$)},$app$main$data$project$files_fetched_54907$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54908$},$app$main$data$project$files_fetched_54907$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$project$files_fetched_54907$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1792$$,$state$jscomp$276$$){var $self__$jscomp$3896$$=this;return $APP.$app$common$data$update_in_when$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$276$$,$APP.$cljs$cst$1901$files$$,$APP.$cljs$core$merge$$,
$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,$self__$jscomp$3896$$.files)),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1913$projects$$,$self__$jscomp$3896$$.$project_id$],null),function($project$jscomp$2$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($project$jscomp$2$$,$APP.$cljs$cst$1078$count$$,$APP.$cljs$core$count$$($self__$jscomp$3896$$.files))})});return new $app$main$data$project$files_fetched_54907$$($project_id$jscomp$10$$,
$files$jscomp$11$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$team$stats_fetched$$=function($team_id$jscomp$43$$,$stats$$){typeof $app$main$data$team$stats_fetched_55054$$==="undefined"&&($app$main$data$team$stats_fetched_55054$$=function($team_id$jscomp$44$$,$stats$jscomp$1$$,$meta55055$$){this.$team_id$=$team_id$jscomp$44$$;this.$stats$=$stats$jscomp$1$$;this.$meta55055$=$meta55055$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$team$stats_fetched_55054$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$team$stats_fetched_55054$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3254$app_DOT_main_DOT_data_DOT_team_SLASH_stats_fetched$$},$app$main$data$team$stats_fetched_55054$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_55056$$,$meta55055__$1$$){return new $app$main$data$team$stats_fetched_55054$$(this.$team_id$,this.$stats$,$meta55055__$1$$)},$app$main$data$team$stats_fetched_55054$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta55055$},$app$main$data$team$stats_fetched_55054$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$team$stats_fetched_55054$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1701$$,$state$jscomp$210$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$210$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2133$teams$$,
this.$team_id$],null),$APP.$cljs$core$assoc$$,$APP.$cljs$cst$3255$stats$$,this.$stats$)});return new $app$main$data$team$stats_fetched_55054$$($team_id$jscomp$43$$,$stats$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$toggle_progress_visibility$$=function(){typeof $app$main$data$common$toggle_progress_visibility_52217$$==="undefined"&&($app$main$data$common$toggle_progress_visibility_52217$$=function($meta52218$$){this.$meta52218$=$meta52218$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$toggle_progress_visibility_52217$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$toggle_progress_visibility_52217$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$2463$app_DOT_main_DOT_data_DOT_common_SLASH_toggle_progress_visibility$$},$app$main$data$common$toggle_progress_visibility_52217$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52219$$,$meta52218__$1$$){return new $app$main$data$common$toggle_progress_visibility_52217$$($meta52218__$1$$)},$app$main$data$common$toggle_progress_visibility_52217$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta52218$},$app$main$data$common$toggle_progress_visibility_52217$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$toggle_progress_visibility_52217$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1542$$,$state$jscomp$127$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$127$$,$APP.$cljs$cst$2204$progress$$,function($state__$1$jscomp$10$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$10$$,$APP.$cljs$cst$2303$visible$$,$APP.$cljs$core$not$$)})});return new $app$main$data$common$toggle_progress_visibility_52217$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$update_progress$$=function($p__52207$$){var $map__52210__$1$$=$APP.$cljs$core$__destructure_map$$($p__52207$$),$index$jscomp$211$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52210__$1$$,$APP.$cljs$cst$1779$index$$),$total$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52210__$1$$,$APP.$cljs$cst$2286$total$$);typeof $app$main$data$common$update_progress_52211$$==="undefined"&&($app$main$data$common$update_progress_52211$$=function($p__52207$jscomp$1$$,
$map__52210$jscomp$1$$,$params$jscomp$154$$,$index$jscomp$212$$,$total$jscomp$8$$,$meta52212$$){this.$p__52207$=$p__52207$jscomp$1$$;this.$map__52210$=$map__52210$jscomp$1$$;this.params=$params$jscomp$154$$;this.index=$index$jscomp$212$$;this.total=$total$jscomp$8$$;this.$meta52212$=$meta52212$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$update_progress_52211$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$common$update_progress_52211$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$2461$app_DOT_main_DOT_data_DOT_common_SLASH_update_progress$$},$app$main$data$common$update_progress_52211$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52213$$,$meta52212__$1$$){return new $app$main$data$common$update_progress_52211$$(this.$p__52207$,this.$map__52210$,this.params,this.index,this.total,$meta52212__$1$$)},$app$main$data$common$update_progress_52211$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta52212$},$app$main$data$common$update_progress_52211$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$update_progress_52211$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1541$$,$state$jscomp$126$$){var $self__$jscomp$3237$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$126$$,$APP.$cljs$cst$2204$progress$$,function($state__$1$jscomp$9$$){var $healthy_QMARK__last_update$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state__$1$jscomp$9$$,$APP.$cljs$cst$2460$last_update$$),$hints$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state__$1$jscomp$9$$,$APP.$cljs$cst$2455$hints$$),$hint$jscomp$7_threshold$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state__$1$jscomp$9$$,$APP.$cljs$cst$2456$slow_progress_threshold$$);$hint$jscomp$7_threshold$jscomp$1$$=($healthy_QMARK__last_update$$=$APP.$app$common$time$diff_ms$$($healthy_QMARK__last_update$$)<
$hint$jscomp$7_threshold$jscomp$1$$)?function(){var $fexpr__52215$$=$APP.$cljs$cst$2008$normal$$.$cljs$core$IFn$_invoke$arity$2$($hints$jscomp$3$$,$APP.$app$main$data$common$noop_fn$$);return $fexpr__52215$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__52215$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$3237$$.params):$fexpr__52215$$($self__$jscomp$3237$$.params)}():function(){var $fexpr__52216$$=$APP.$cljs$cst$2462$slow$$.$cljs$core$IFn$_invoke$arity$2$($hints$jscomp$3$$,$APP.$app$main$data$common$noop_fn$$);
return $fexpr__52216$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__52216$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$3237$$.params):$fexpr__52216$$($self__$jscomp$3237$$.params)}();return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$9$$,$APP.$cljs$cst$2204$progress$$,
$self__$jscomp$3237$$.index),$APP.$cljs$cst$2286$total$$,$self__$jscomp$3237$$.total),$APP.$cljs$cst$2460$last_update$$,$APP.$app$common$time$now$$()),$APP.$cljs$cst$2459$healthy$$,$healthy_QMARK__last_update$$),$APP.$cljs$cst$273$hint$$,$hint$jscomp$7_threshold$jscomp$1$$)})});return new $app$main$data$common$update_progress_52211$$($p__52207$$,$map__52210__$1$$,$map__52210__$1$$,$index$jscomp$211$$,$total$jscomp$7$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$toggle_file_select$$=function($p__71074$$){var $map__71075__$1$$=$APP.$cljs$core$__destructure_map$$($p__71074$$),$id$jscomp$780$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71075__$1$$,$APP.$cljs$cst$266$id$$),$project_id$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71075__$1$$,$APP.$cljs$cst$2141$project_id$$);typeof $app$main$data$dashboard$toggle_file_select_71076$$==="undefined"&&($app$main$data$dashboard$toggle_file_select_71076$$=
function($p__71074$jscomp$1$$,$map__71075$jscomp$1$$,$file$jscomp$78$$,$id$jscomp$781$$,$project_id$jscomp$17$$,$meta71077$$){this.$p__71074$=$p__71074$jscomp$1$$;this.$map__71075$=$map__71075$jscomp$1$$;this.file=$file$jscomp$78$$;this.id=$id$jscomp$781$$;this.$project_id$=$project_id$jscomp$17$$;this.$meta71077$=$meta71077$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$toggle_file_select_71076$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$toggle_file_select_71076$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4740$app_DOT_main_DOT_data_DOT_dashboard_SLASH_toggle_file_select$$},$app$main$data$dashboard$toggle_file_select_71076$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71078$$,$meta71077__$1$$){return new $app$main$data$dashboard$toggle_file_select_71076$$(this.$p__71074$,this.$map__71075$,this.file,this.id,this.$project_id$,
$meta71077__$1$$)},$app$main$data$dashboard$toggle_file_select_71076$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71077$},$app$main$data$dashboard$toggle_file_select_71076$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$toggle_file_select_71076$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2610_selected_project_id$$,$state$jscomp$939$$){var $self__$jscomp$6556$$=this;$_$jscomp$2610_selected_project_id$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$939$$,$APP.$cljs$cst$2144$selected_project$$);return $_$jscomp$2610_selected_project_id$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2610_selected_project_id$$,$self__$jscomp$6556$$.$project_id$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$939$$,$APP.$cljs$cst$2143$selected_files$$,function($p1__71072_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($p1__71072_SHARP_$$,
$self__$jscomp$6556$$.id)?$APP.$cljs$core$disj$$.$cljs$core$IFn$_invoke$arity$2$($p1__71072_SHARP_$$,$self__$jscomp$6556$$.id):$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($p1__71072_SHARP_$$,$self__$jscomp$6556$$.id)}),$APP.$cljs$cst$2144$selected_project$$,$self__$jscomp$6556$$.$project_id$):$state$jscomp$939$$});return new $app$main$data$dashboard$toggle_file_select_71076$$($p__71074$$,$map__71075__$1$$,$map__71075__$1$$,$id$jscomp$780$$,$project_id$jscomp$16$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$clear_selected_files$$=function(){typeof $app$main$data$dashboard$clear_file_select_71065$$==="undefined"&&($app$main$data$dashboard$clear_file_select_71065$$=function($meta71066$$){this.$meta71066$=$meta71066$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$clear_file_select_71065$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$clear_file_select_71065$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4737$app_DOT_main_DOT_data_DOT_dashboard_SLASH_clear_file_select$$},$app$main$data$dashboard$clear_file_select_71065$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71067$$,$meta71066__$1$$){return new $app$main$data$dashboard$clear_file_select_71065$$($meta71066__$1$$)},$app$main$data$dashboard$clear_file_select_71065$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71066$},$app$main$data$dashboard$clear_file_select_71065$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$clear_file_select_71065$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2609$$,$state$jscomp$938$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$938$$,$APP.$cljs$cst$2143$selected_files$$),$APP.$cljs$cst$2144$selected_project$$),$APP.$cljs$cst$2145$dashboard_local$$,
$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$4738$menu_open$$,$APP.$cljs$cst$4739$menu_pos$$)});return new $app$main$data$dashboard$clear_file_select_71065$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$hide_file_menu$$=function(){typeof $app$main$data$dashboard$hide_file_menu_71097$$==="undefined"&&($app$main$data$dashboard$hide_file_menu_71097$$=function($meta71098$$){this.$meta71098$=$meta71098$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$hide_file_menu_71097$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$hide_file_menu_71097$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4743$app_DOT_main_DOT_data_DOT_dashboard_SLASH_hide_file_menu$$},$app$main$data$dashboard$hide_file_menu_71097$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71099$$,$meta71098__$1$$){return new $app$main$data$dashboard$hide_file_menu_71097$$($meta71098__$1$$)},$app$main$data$dashboard$hide_file_menu_71097$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71098$},$app$main$data$dashboard$hide_file_menu_71097$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$hide_file_menu_71097$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2613$$,$state$jscomp$942$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$942$$,$APP.$cljs$cst$2145$dashboard_local$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!1)});return new $app$main$data$dashboard$hide_file_menu_71097$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$delete_file$$=function($p__71199$$){var $map__71200__$1$$=$APP.$cljs$core$__destructure_map$$($p__71199$$),$id$jscomp$796$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71200__$1$$,$APP.$cljs$cst$266$id$$),$project_id$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71200__$1$$,$APP.$cljs$cst$2141$project_id$$);typeof $app$main$data$dashboard$delete_file_71201$$==="undefined"&&($app$main$data$dashboard$delete_file_71201$$=function($p__71199$jscomp$1$$,
$map__71200$jscomp$1$$,$params$jscomp$335$$,$id$jscomp$797$$,$project_id$jscomp$21$$,$meta71202$$){this.$p__71199$=$p__71199$jscomp$1$$;this.$map__71200$=$map__71200$jscomp$1$$;this.params=$params$jscomp$335$$;this.id=$id$jscomp$797$$;this.$project_id$=$project_id$jscomp$21$$;this.$meta71202$=$meta71202$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$delete_file_71201$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$delete_file_71201$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4762$app_DOT_main_DOT_data_DOT_dashboard_SLASH_delete_file$$},$app$main$data$dashboard$delete_file_71201$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71203$$,$meta71202__$1$$){return new $app$main$data$dashboard$delete_file_71201$$(this.$p__71199$,this.$map__71200$,this.params,this.id,this.$project_id$,$meta71202__$1$$)},$app$main$data$dashboard$delete_file_71201$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71202$},$app$main$data$dashboard$delete_file_71201$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$delete_file_71201$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2631$$,$state$jscomp$954$$){return $APP.$app$common$data$update_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$data$update_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$data$update_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($state$jscomp$954$$,
$APP.$cljs$cst$1901$files$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.id])),$APP.$cljs$cst$2139$shared_files$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.id])),$APP.$cljs$cst$4725$recent_files$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.id]))},$app$main$data$dashboard$delete_file_71201$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$delete_file_71201$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$dashboard$file_deleted$$,this.$project_id$),$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4763$delete_file$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,this.id],null)))});return new $app$main$data$dashboard$delete_file_71201$$($p__71199$$,
$map__71200__$1$$,$map__71200__$1$$,$id$jscomp$796$$,$project_id$jscomp$20$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$fetch_deleted_files$cljs$0core$0IFn$0_invoke$0arity$01$$=function($team_id$jscomp$92$$){typeof $app$main$data$dashboard$fetch_deleted_files_71061$$==="undefined"&&($app$main$data$dashboard$fetch_deleted_files_71061$$=function($team_id$jscomp$93$$,$meta71062$$){this.$team_id$=$team_id$jscomp$93$$;this.$meta71062$=$meta71062$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$fetch_deleted_files_71061$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$fetch_deleted_files_71061$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4735$app_DOT_main_DOT_data_DOT_dashboard_SLASH_fetch_deleted_files$$},$app$main$data$dashboard$fetch_deleted_files_71061$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71063$$,$meta71062__$1$$){return new $app$main$data$dashboard$fetch_deleted_files_71061$$(this.$team_id$,$meta71062__$1$$)},$app$main$data$dashboard$fetch_deleted_files_71061$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71062$},$app$main$data$dashboard$fetch_deleted_files_71061$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$fetch_deleted_files_71061$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2608_or__5025__auto__$jscomp$inline_9143$$,$state$jscomp$937_temp__5825__auto__$jscomp$246$$){$_$jscomp$2608_or__5025__auto__$jscomp$inline_9143$$=this.$team_id$;$state$jscomp$937_temp__5825__auto__$jscomp$246$$=$APP.$cljs$core$truth_$$($_$jscomp$2608_or__5025__auto__$jscomp$inline_9143$$)?
$_$jscomp$2608_or__5025__auto__$jscomp$inline_9143$$:$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$937_temp__5825__auto__$jscomp$246$$);return $APP.$cljs$core$truth_$$($state$jscomp$937_temp__5825__auto__$jscomp$246$$)?$APP.$beicon$v2$core$map$$($app$main$data$dashboard$deleted_files_fetched$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4736$get_team_deleted_files$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1912$team_id$$,
$state$jscomp$937_temp__5825__auto__$jscomp$246$$],null))):null});return new $app$main$data$dashboard$fetch_deleted_files_71061$$($team_id$jscomp$92$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$fetch_builtin_templates$$=function(){typeof $app$main$data$dashboard$fetch_builtin_templates_71030$$==="undefined"&&($app$main$data$dashboard$fetch_builtin_templates_71030$$=function($meta71031$$){this.$meta71031$=$meta71031$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$fetch_builtin_templates_71030$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$fetch_builtin_templates_71030$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4730$app_DOT_main_DOT_data_DOT_dashboard_SLASH_fetch_builtin_templates$$},$app$main$data$dashboard$fetch_builtin_templates_71030$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71032$$,$meta71031__$1$$){return new $app$main$data$dashboard$fetch_builtin_templates_71030$$($meta71031__$1$$)},$app$main$data$dashboard$fetch_builtin_templates_71030$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71031$},$app$main$data$dashboard$fetch_builtin_templates_71030$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$fetch_builtin_templates_71030$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$($app$main$data$dashboard$builtin_templates_fetched$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4731$get_builtin_templates$$))});return new $app$main$data$dashboard$fetch_builtin_templates_71030$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$=function($team_id$jscomp$90$$){typeof $app$main$data$dashboard$fetch_recent_files_71000$$==="undefined"&&($app$main$data$dashboard$fetch_recent_files_71000$$=function($team_id$jscomp$91$$,$meta71001$$){this.$team_id$=$team_id$jscomp$91$$;this.$meta71001$=$meta71001$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$fetch_recent_files_71000$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$fetch_recent_files_71000$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4726$app_DOT_main_DOT_data_DOT_dashboard_SLASH_fetch_recent_files$$},$app$main$data$dashboard$fetch_recent_files_71000$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71002$$,$meta71001__$1$$){return new $app$main$data$dashboard$fetch_recent_files_71000$$(this.$team_id$,$meta71001__$1$$)},$app$main$data$dashboard$fetch_recent_files_71000$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71001$},$app$main$data$dashboard$fetch_recent_files_71000$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$fetch_recent_files_71000$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2604_or__5025__auto__$jscomp$inline_9145$$,$state$jscomp$934_temp__5825__auto__$jscomp$245$$){$_$jscomp$2604_or__5025__auto__$jscomp$inline_9145$$=this.$team_id$;$state$jscomp$934_temp__5825__auto__$jscomp$245$$=$APP.$cljs$core$truth_$$($_$jscomp$2604_or__5025__auto__$jscomp$inline_9145$$)?
$_$jscomp$2604_or__5025__auto__$jscomp$inline_9145$$:$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$934_temp__5825__auto__$jscomp$245$$);return $APP.$cljs$core$truth_$$($state$jscomp$934_temp__5825__auto__$jscomp$245$$)?$APP.$beicon$v2$core$map$$($app$main$data$dashboard$recent_files_fetched$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4727$get_team_recent_files$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1912$team_id$$,
$state$jscomp$934_temp__5825__auto__$jscomp$245$$],null))):null});return new $app$main$data$dashboard$fetch_recent_files_71000$$($team_id$jscomp$90$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$fetch_projects$$=function($team_id$jscomp$87$$){typeof $app$main$data$dashboard$fetch_projects_70977$$==="undefined"&&($app$main$data$dashboard$fetch_projects_70977$$=function($team_id$jscomp$88$$,$meta70978$$){this.$team_id$=$team_id$jscomp$88$$;this.$meta70978$=$meta70978$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$fetch_projects_70977$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$fetch_projects_70977$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4719$app_DOT_main_DOT_data_DOT_dashboard_SLASH_fetch_projects$$},$app$main$data$dashboard$fetch_projects_70977$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70979$$,$meta70978__$1$$){return new $app$main$data$dashboard$fetch_projects_70977$$(this.$team_id$,$meta70978__$1$$)},$app$main$data$dashboard$fetch_projects_70977$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70978$},$app$main$data$dashboard$fetch_projects_70977$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$fetch_projects_70977$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$($app$main$data$dashboard$projects_fetched$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4720$get_projects$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1912$team_id$$,
this.$team_id$],null)))});return new $app$main$data$dashboard$fetch_projects_70977$$($team_id$jscomp$87$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$project$fetch_files$cljs$0core$0IFn$0_invoke$0arity$01$$=function($project_id$jscomp$12$$){typeof $app$main$data$project$fetch_files_54918$$==="undefined"&&($app$main$data$project$fetch_files_54918$$=function($project_id$jscomp$13$$,$meta54919$$){this.$project_id$=$project_id$jscomp$13$$;this.$meta54919$=$meta54919$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$project$fetch_files_54918$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$project$fetch_files_54918$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3389$app_DOT_main_DOT_data_DOT_project_SLASH_fetch_files$$},$app$main$data$project$fetch_files_54918$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54920$$,$meta54919__$1$$){return new $app$main$data$project$fetch_files_54918$$(this.$project_id$,$meta54919__$1$$)},$app$main$data$project$fetch_files_54918$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54919$},$app$main$data$project$fetch_files_54918$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$project$fetch_files_54918$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1793_or__5025__auto__$jscomp$inline_9147$$,$state$jscomp$277_temp__5825__auto__$jscomp$179$$){$_$jscomp$1793_or__5025__auto__$jscomp$inline_9147$$=this.$project_id$;$state$jscomp$277_temp__5825__auto__$jscomp$179$$=$APP.$cljs$core$truth_$$($_$jscomp$1793_or__5025__auto__$jscomp$inline_9147$$)?
$_$jscomp$1793_or__5025__auto__$jscomp$inline_9147$$:$APP.$cljs$cst$2134$current_project_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$277_temp__5825__auto__$jscomp$179$$);return $APP.$cljs$core$truth_$$($state$jscomp$277_temp__5825__auto__$jscomp$179$$)?$APP.$beicon$v2$core$map$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$project$files_fetched$$,$state$jscomp$277_temp__5825__auto__$jscomp$179$$),$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3390$get_project_files$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2141$project_id$$,$state$jscomp$277_temp__5825__auto__$jscomp$179$$],null))):null});return new $app$main$data$project$fetch_files_54918$$($project_id$jscomp$12$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$team$fetch_stats$$=function(){typeof $app$main$data$team$fetch_stats_55057$$==="undefined"&&($app$main$data$team$fetch_stats_55057$$=function($meta55058$$){this.$meta55058$=$meta55058$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$team$fetch_stats_55057$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$team$fetch_stats_55057$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3256$app_DOT_main_DOT_data_DOT_team_SLASH_fetch_stats$$},
$app$main$data$team$fetch_stats_55057$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_55059$$,$meta55058__$1$$){return new $app$main$data$team$fetch_stats_55057$$($meta55058__$1$$)},$app$main$data$team$fetch_stats_55057$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta55058$},$app$main$data$team$fetch_stats_55057$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$team$fetch_stats_55057$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$1702_team_id$jscomp$45$$,$state$jscomp$211$$){$_$jscomp$1702_team_id$jscomp$45$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$211$$);return $APP.$beicon$v2$core$map$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$team$stats_fetched$$,$_$jscomp$1702_team_id$jscomp$45$$),$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3257$get_team_stats$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1912$team_id$$,$_$jscomp$1702_team_id$jscomp$45$$],null)))});return new $app$main$data$team$fetch_stats_55057$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$set_file_shared$$=function($p__71230$$){var $map__71231__$1$$=$APP.$cljs$core$__destructure_map$$($p__71230$$),$id$jscomp$800$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71231__$1$$,$APP.$cljs$cst$266$id$$),$is_shared$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71231__$1$$,$APP.$cljs$cst$2142$is_shared$$);typeof $app$main$data$dashboard$set_file_shared_71232$$==="undefined"&&($app$main$data$dashboard$set_file_shared_71232$$=function($p__71230$jscomp$1$$,
$map__71231$jscomp$1$$,$params$jscomp$339$$,$id$jscomp$801$$,$is_shared$jscomp$4$$,$meta71233$$){this.$p__71230$=$p__71230$jscomp$1$$;this.$map__71231$=$map__71231$jscomp$1$$;this.params=$params$jscomp$339$$;this.id=$id$jscomp$801$$;this.$is_shared$=$is_shared$jscomp$4$$;this.$meta71233$=$meta71233$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$set_file_shared_71232$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$set_file_shared_71232$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4765$app_DOT_main_DOT_data_DOT_dashboard_SLASH_set_file_shared$$},$app$main$data$dashboard$set_file_shared_71232$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71234$$,$meta71233__$1$$){return new $app$main$data$dashboard$set_file_shared_71232$$(this.$p__71230$,this.$map__71231$,this.params,this.id,this.$is_shared$,$meta71233__$1$$)},$app$main$data$dashboard$set_file_shared_71232$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71233$},$app$main$data$dashboard$set_file_shared_71232$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$set_file_shared_71232$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard",$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$3817$shared$$,this.$is_shared$],null)},$app$main$data$dashboard$set_file_shared_71232$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$set_file_shared_71232$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($G__71243__$jscomp$2637$$,$state$jscomp$956$$){$G__71243__$jscomp$2637$$=$APP.$app$common$data$update_in_when$$($APP.$app$common$data$update_in_when$$($state$jscomp$956$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1901$files$$,this.id,$APP.$cljs$cst$2142$is_shared$$],null),$APP.$cljs$core$constantly$$(this.$is_shared$)),
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4725$recent_files$$,this.id,$APP.$cljs$cst$2142$is_shared$$],null),$APP.$cljs$core$constantly$$(this.$is_shared$));return $APP.$cljs$core$not$$(this.$is_shared$)?$APP.$app$common$data$update_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($G__71243__$jscomp$2637$$,$APP.$cljs$cst$2139$shared_files$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.id])):
$G__71243__$jscomp$2637$$},$app$main$data$dashboard$set_file_shared_71232$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$set_file_shared_71232$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$ignore$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3818$set_file_shared$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,
this.id,$APP.$cljs$cst$2142$is_shared$$,this.$is_shared$],null))),$APP.$cljs$core$truth_$$(this.$is_shared$)?$APP.$beicon$v2$core$map$$(function($summary$jscomp$1$$){return $APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2620$variants$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$1$$))>0?$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$$,
"set-file-variants-shared",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard"],null)):null},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2437$get_file_summary$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,this.id],null))):null)});return new $app$main$data$dashboard$set_file_shared_71232$$($p__71230$$,$map__71231__$1$$,$map__71231__$1$$,$id$jscomp$800$$,$is_shared$jscomp$3$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$rename_file$$=function($p__71214$$){var $map__71215__$1$$=$APP.$cljs$core$__destructure_map$$($p__71214$$),$id$jscomp$798$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71215__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$377$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71215__$1$$,$APP.$cljs$cst$723$name$$);typeof $app$main$data$dashboard$rename_file_71217$$==="undefined"&&($app$main$data$dashboard$rename_file_71217$$=function($p__71214$jscomp$1$$,
$map__71215$jscomp$1$$,$params$jscomp$337$$,$id$jscomp$799$$,$name$jscomp$378$$,$meta71218$$){this.$p__71214$=$p__71214$jscomp$1$$;this.$map__71215$=$map__71215$jscomp$1$$;this.params=$params$jscomp$337$$;this.id=$id$jscomp$799$$;this.name=$name$jscomp$378$$;this.$meta71218$=$meta71218$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$rename_file_71217$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$rename_file_71217$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4764$app_DOT_main_DOT_data_DOT_dashboard_SLASH_rename_file$$},$app$main$data$dashboard$rename_file_71217$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71219$$,$meta71218__$1$$){return new $app$main$data$dashboard$rename_file_71217$$(this.$p__71214$,this.$map__71215$,this.params,this.id,this.name,$meta71218__$1$$)},$app$main$data$dashboard$rename_file_71217$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71218$},$app$main$data$dashboard$rename_file_71217$$.prototype.$app$main$data$event$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$rename_file_71217$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard",$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$723$name$$,this.name],null)},$app$main$data$dashboard$rename_file_71217$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$rename_file_71217$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2634$$,$state$jscomp$955$$){return $APP.$app$common$data$update_in_when$$($APP.$app$common$data$update_in_when$$($APP.$app$common$data$update_in_when$$($state$jscomp$955$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1901$files$$,this.id,$APP.$cljs$cst$723$name$$],null),$APP.$cljs$core$constantly$$(this.name)),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2139$shared_files$$,
this.id,$APP.$cljs$cst$723$name$$],null),$APP.$cljs$core$constantly$$(this.name)),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4725$recent_files$$,this.id,$APP.$cljs$cst$723$name$$],null),$APP.$cljs$core$constantly$$(this.name))},$app$main$data$dashboard$rename_file_71217$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$rename_file_71217$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){var $params__$1$jscomp$45$$=$APP.$cljs$core$select_keys$$(this.params,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$723$name$$],null));return $APP.$beicon$v2$core$ignore$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4314$rename_file$$,$params__$1$jscomp$45$$))});return new $app$main$data$dashboard$rename_file_71217$$($p__71214$$,$map__71215__$1$$,$map__71215__$1$$,
$id$jscomp$798$$,$name$jscomp$377$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$fonts$calculate_family_to_id_mapping$$=function($existing$jscomp$2$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__54959_SHARP_$$,$p2__54960_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__54959_SHARP_$$,$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($p2__54960_SHARP_$$),$APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($p2__54960_SHARP_$$))},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$vals$$($existing$jscomp$2$$))};
$app$main$data$fonts$rename_and_regroup$$=function($current_fonts$jscomp$1$$,$id$jscomp$438$$,$name$jscomp$278$$,$installed_fonts$jscomp$1$$){var $famdb$jscomp$1$$=$app$main$data$fonts$calculate_family_to_id_mapping$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$current_fonts$jscomp$1$$,$installed_fonts$jscomp$1$$]))),$font_id$jscomp$24$$=function(){var $or__5025__auto__$jscomp$632$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($famdb$jscomp$1$$,
$name$jscomp$278$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$632$$)?$or__5025__auto__$jscomp$632$$:$APP.$app$common$uuid$next$$()}();return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($current_fonts$jscomp$1$$,$id$jscomp$438$$,function($font$jscomp$32$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($font$jscomp$32$$,$APP.$cljs$cst$1742$font_family$$,$name$jscomp$278$$),$APP.$cljs$cst$1741$font_id$$,
$font_id$jscomp$24$$)})};
$app$main$data$fonts$merge_and_group_fonts$$=function($G__55065_current_fonts_result$jscomp$262$$,$G__55063_famdb_installed_fonts$$,$G__55064_incoming_fonts_items$jscomp$31$$){$G__55063_famdb_installed_fonts$$=$app$main$data$fonts$calculate_family_to_id_mapping$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__55065_current_fonts_result$jscomp$262$$,$G__55063_famdb_installed_fonts$$])));for($G__55064_incoming_fonts_items$jscomp$31$$=$APP.$cljs$core$vals$$($G__55064_incoming_fonts_items$jscomp$31$$);;){var $id$jscomp$437_temp__5823__auto__$jscomp$161$$=
$APP.$cljs$core$first$$($G__55064_incoming_fonts_items$jscomp$31$$);if($APP.$cljs$core$truth_$$($id$jscomp$437_temp__5823__auto__$jscomp$161$$)){var $font_family$jscomp$5_map__54962__$1$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$437_temp__5823__auto__$jscomp$161$$),$font$jscomp$31_item$jscomp$72$$=$font_family$jscomp$5_map__54962__$1$$;$id$jscomp$437_temp__5823__auto__$jscomp$161$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_family$jscomp$5_map__54962__$1$$,$APP.$cljs$cst$266$id$$);
$font_family$jscomp$5_map__54962__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_family$jscomp$5_map__54962__$1$$,$APP.$cljs$cst$1742$font_family$$);var $font_id$jscomp$23_or__5025__auto__$jscomp$inline_9149$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__55063_famdb_installed_fonts$$,$font_family$jscomp$5_map__54962__$1$$);$font_id$jscomp$23_or__5025__auto__$jscomp$inline_9149$$=$APP.$cljs$core$truth_$$($font_id$jscomp$23_or__5025__auto__$jscomp$inline_9149$$)?$font_id$jscomp$23_or__5025__auto__$jscomp$inline_9149$$:
$APP.$app$common$uuid$next$$();$font$jscomp$31_item$jscomp$72$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($font$jscomp$31_item$jscomp$72$$,$APP.$cljs$cst$1741$font_id$$,$font_id$jscomp$23_or__5025__auto__$jscomp$inline_9149$$);$G__55063_famdb_installed_fonts$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__55063_famdb_installed_fonts$$,$font_family$jscomp$5_map__54962__$1$$,$font_id$jscomp$23_or__5025__auto__$jscomp$inline_9149$$);$G__55064_incoming_fonts_items$jscomp$31$$=
$APP.$cljs$core$rest$$($G__55064_incoming_fonts_items$jscomp$31$$);$G__55065_current_fonts_result$jscomp$262$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__55065_current_fonts_result$jscomp$262$$,$id$jscomp$437_temp__5823__auto__$jscomp$161$$,$font$jscomp$31_item$jscomp$72$$)}else return $G__55065_current_fonts_result$jscomp$262$$}};
$app$main$data$fonts$update_font$$=function($p__54970$$){var $map__54971__$1$$=$APP.$cljs$core$__destructure_map$$($p__54970$$),$id$jscomp$439$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54971__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$279$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54971__$1$$,$APP.$cljs$cst$723$name$$);typeof $app$main$data$fonts$update_font_54972$$==="undefined"&&($app$main$data$fonts$update_font_54972$$=function($p__54970$jscomp$1$$,$map__54971$jscomp$1$$,
$params$jscomp$247$$,$id$jscomp$440$$,$name$jscomp$280$$,$meta54973$$){this.$p__54970$=$p__54970$jscomp$1$$;this.$map__54971$=$map__54971$jscomp$1$$;this.params=$params$jscomp$247$$;this.id=$id$jscomp$440$$;this.name=$name$jscomp$280$$;this.$meta54973$=$meta54973$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$fonts$update_font_54972$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$update_font_54972$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3376$app_DOT_main_DOT_data_DOT_fonts_SLASH_update_font$$},$app$main$data$fonts$update_font_54972$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54974$$,$meta54973__$1$$){return new $app$main$data$fonts$update_font_54972$$(this.$p__54970$,this.$map__54971$,this.params,this.id,this.name,$meta54973__$1$$)},$app$main$data$fonts$update_font_54972$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54973$},$app$main$data$fonts$update_font_54972$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$update_font_54972$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1778$$,$state$jscomp$263$$){var $self__$jscomp$3858$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$263$$,$APP.$cljs$cst$2987$fonts$$,$APP.$cljs$core$update_vals$$,function($font$jscomp$35$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$3858$$.id,$APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$35$$))?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($font$jscomp$35$$,$APP.$cljs$cst$1742$font_family$$,$self__$jscomp$3858$$.name):$font$jscomp$35$$})},$app$main$data$fonts$update_font_54972$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$update_font_54972$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1779_team_id$jscomp$72$$,$state$jscomp$264$$){$_$jscomp$1779_team_id$jscomp$72$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$264$$);
return $APP.$beicon$v2$core$ignore$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3377$update_font$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$723$name$$,this.name,$APP.$cljs$cst$1912$team_id$$,$_$jscomp$1779_team_id$jscomp$72$$],null)))});return new $app$main$data$fonts$update_font_54972$$($p__54970$$,$map__54971__$1$$,$map__54971__$1$$,$id$jscomp$439$$,$name$jscomp$279$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$media$parse_font_weight$$=function($variant$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:hairline|thin)/i,$variant$$))?100:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:extra\s*light|ultra\s*light)/i,$variant$$))?200:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:light)/i,$variant$$))?300:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:normal|regular)/i,$variant$$))?400:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:medium)/i,$variant$$))?
500:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:semi\s*bold|demi\s*bold)/i,$variant$$))?600:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:extra\s*bold|ultra\s*bold)/i,$variant$$))?800:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:bold)/i,$variant$$))?700:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:extra\s*black|ultra\s*black)/i,$variant$$))?950:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:black|heavy|solid)/i,$variant$$))?900:400};
$app$main$data$fonts$delete_font_variant$$=function($id$jscomp$441$$){typeof $app$main$data$fonts$delete_font_variants_54994$$==="undefined"&&($app$main$data$fonts$delete_font_variants_54994$$=function($id$jscomp$442$$,$meta54995$$){this.id=$id$jscomp$442$$;this.$meta54995$=$meta54995$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$fonts$delete_font_variants_54994$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$fonts$delete_font_variants_54994$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3380$app_DOT_main_DOT_data_DOT_fonts_SLASH_delete_font_variants$$},$app$main$data$fonts$delete_font_variants_54994$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54996$$,$meta54995__$1$$){return new $app$main$data$fonts$delete_font_variants_54994$$(this.id,$meta54995__$1$$)},$app$main$data$fonts$delete_font_variants_54994$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54995$},$app$main$data$fonts$delete_font_variants_54994$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$delete_font_variants_54994$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1783$$,$state$jscomp$267$$){var $self__$jscomp$3869$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$267$$,$APP.$cljs$cst$2987$fonts$$,function($variants$jscomp$7$$){return $APP.$app$common$data$removem$$(function($p__55001_variant$jscomp$14$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__55001_variant$jscomp$14$$,
0,null);$p__55001_variant$jscomp$14$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__55001_variant$jscomp$14$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p__55001_variant$jscomp$14$$),$self__$jscomp$3869$$.id)},$variants$jscomp$7$$)})},$app$main$data$fonts$delete_font_variants_54994$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$delete_font_variants_54994$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$1784_team_id$jscomp$74$$,$state$jscomp$268$$){$_$jscomp$1784_team_id$jscomp$74$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$268$$);return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$ignore$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3381$delete_font_variant$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$1912$team_id$$,$_$jscomp$1784_team_id$jscomp$74$$],
null))),(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$$,"delete-font-variant",$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$1912$team_id$$,$_$jscomp$1784_team_id$jscomp$74$$],null))))});return new $app$main$data$fonts$delete_font_variants_54994$$($id$jscomp$441$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$fonts$delete_font$$=function($font_id$jscomp$25$$){typeof $app$main$data$fonts$delete_font_54980$$==="undefined"&&($app$main$data$fonts$delete_font_54980$$=function($font_id$jscomp$26$$,$meta54981$$){this.$font_id$=$font_id$jscomp$26$$;this.$meta54981$=$meta54981$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$fonts$delete_font_54980$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$delete_font_54980$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3378$app_DOT_main_DOT_data_DOT_fonts_SLASH_delete_font$$},$app$main$data$fonts$delete_font_54980$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54982$$,$meta54981__$1$$){return new $app$main$data$fonts$delete_font_54980$$(this.$font_id$,$meta54981__$1$$)},$app$main$data$fonts$delete_font_54980$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54981$},$app$main$data$fonts$delete_font_54980$$.prototype.$app$main$data$event$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$delete_font_54980$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,this.$font_id$],null)},$app$main$data$fonts$delete_font_54980$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$delete_font_54980$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1781$$,$state$jscomp$265$$){var $self__$jscomp$3864$$=
this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$265$$,$APP.$cljs$cst$2987$fonts$$,function($variants$jscomp$6$$){return $APP.$app$common$data$removem$$(function($p__54985_variant$jscomp$13$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__54985_variant$jscomp$13$$,0,null);$p__54985_variant$jscomp$13$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__54985_variant$jscomp$13$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($p__54985_variant$jscomp$13$$),
$self__$jscomp$3864$$.$font_id$)},$variants$jscomp$6$$)})},$app$main$data$fonts$delete_font_54980$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$delete_font_54980$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1782_team_id$jscomp$73$$,$state$jscomp$266$$){$_$jscomp$1782_team_id$jscomp$73$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$266$$);return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$ignore$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3379$delete_font$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,this.$font_id$,$APP.$cljs$cst$1912$team_id$$,$_$jscomp$1782_team_id$jscomp$73$$],null))),(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$$,"delete-font",$APP.$cljs$cst$1912$team_id$$,$_$jscomp$1782_team_id$jscomp$73$$,
$APP.$cljs$cst$1741$font_id$$,this.$font_id$],null))))});return new $app$main$data$fonts$delete_font_54980$$($font_id$jscomp$25$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$initialize_progress$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($p__52195$$){var $map__52196__$1$$=$APP.$cljs$core$__destructure_map$$($p__52195$$),$key$jscomp$322$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52196__$1$$,$APP.$cljs$cst$300$key$$),$index$jscomp$209$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52196__$1$$,$APP.$cljs$cst$1779$index$$),$total$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52196__$1$$,
$APP.$cljs$cst$2286$total$$),$hints$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52196__$1$$,$APP.$cljs$cst$2455$hints$$),$slow_progress_threshold$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52196__$1$$,$APP.$cljs$cst$2456$slow_progress_threshold$$);typeof $app$main$data$common$initialize_progress_52198$$==="undefined"&&($app$main$data$common$initialize_progress_52198$$=function($p__52195$jscomp$1$$,$map__52196$jscomp$1$$,$params$jscomp$152$$,$key$jscomp$323$$,
$index$jscomp$210$$,$total$jscomp$6$$,$hints$jscomp$2$$,$slow_progress_threshold$jscomp$1$$,$meta52199$$){this.$p__52195$=$p__52195$jscomp$1$$;this.$map__52196$=$map__52196$jscomp$1$$;this.params=$params$jscomp$152$$;this.key=$key$jscomp$323$$;this.index=$index$jscomp$210$$;this.total=$total$jscomp$6$$;this.$hints$=$hints$jscomp$2$$;this.$slow_progress_threshold$=$slow_progress_threshold$jscomp$1$$;this.$meta52199$=$meta52199$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$common$initialize_progress_52198$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$initialize_progress_52198$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$2457$app_DOT_main_DOT_data_DOT_common_SLASH_initialize_progress$$},$app$main$data$common$initialize_progress_52198$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52200$$,$meta52199__$1$$){return new $app$main$data$common$initialize_progress_52198$$(this.$p__52195$,
this.$map__52196$,this.params,this.key,this.index,this.total,this.$hints$,this.$slow_progress_threshold$,$meta52199__$1$$)},$app$main$data$common$initialize_progress_52198$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta52199$},$app$main$data$common$initialize_progress_52198$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$initialize_progress_52198$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1540$$,
$state$jscomp$125$$){var $self__$jscomp$3233$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$125$$,$APP.$cljs$cst$2204$progress$$,function(){var $hint$jscomp$6$$=function(){var $fexpr__52203$$=$APP.$cljs$cst$2008$normal$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$3233$$.$hints$,$APP.$app$main$data$common$noop_fn$$);return $fexpr__52203$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__52203$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$3233$$.params):$fexpr__52203$$($self__$jscomp$3233$$.params)}();
return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$2455$hints$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$273$hint$$,$APP.$cljs$cst$2458$threshold$$,$APP.$cljs$cst$2459$healthy$$,$APP.$cljs$cst$2286$total$$,$APP.$cljs$cst$2460$last_update$$,$APP.$cljs$cst$2204$progress$$,$APP.$cljs$cst$2303$visible$$],[$self__$jscomp$3233$$.$hints$,$self__$jscomp$3233$$.key,$hint$jscomp$6$$,function(){var $or__5025__auto__$jscomp$437$$=$self__$jscomp$3233$$.$slow_progress_threshold$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$437$$)?
$or__5025__auto__$jscomp$437$$:5E3}(),!0,$self__$jscomp$3233$$.total,$APP.$app$common$time$now$$(),$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$3233$$.index,0),!0])})});return new $app$main$data$common$initialize_progress_52198$$($p__52195$$,$map__52196__$1$$,$map__52196__$1$$,$key$jscomp$322$$,$index$jscomp$209$$,$total$jscomp$5$$,$hints$jscomp$1$$,$slow_progress_threshold$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$team$delete_invitation$$=function($p__55207$$){var $map__55208__$1$$=$APP.$cljs$core$__destructure_map$$($p__55207$$),$email$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__55208__$1$$,$APP.$cljs$cst$3176$email$$),$team_id$jscomp$57$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__55208__$1$$,$APP.$cljs$cst$1912$team_id$$);typeof $app$main$data$team$delete_invitation_55209$$==="undefined"&&($app$main$data$team$delete_invitation_55209$$=function($p__55207$jscomp$1$$,
$map__55208$jscomp$1$$,$params$jscomp$220$$,$email$jscomp$7$$,$team_id$jscomp$58$$,$meta55210$$){this.$p__55207$=$p__55207$jscomp$1$$;this.$map__55208$=$map__55208$jscomp$1$$;this.params=$params$jscomp$220$$;this.email=$email$jscomp$7$$;this.$team_id$=$team_id$jscomp$58$$;this.$meta55210$=$meta55210$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$team$delete_invitation_55209$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$team$delete_invitation_55209$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3283$app_DOT_main_DOT_data_DOT_team_SLASH_delete_invitation$$},$app$main$data$team$delete_invitation_55209$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_55211$$,$meta55210__$1$$){return new $app$main$data$team$delete_invitation_55209$$(this.$p__55207$,this.$map__55208$,this.params,this.email,this.$team_id$,$meta55210__$1$$)},$app$main$data$team$delete_invitation_55209$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta55210$},$app$main$data$team$delete_invitation_55209$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$team$delete_invitation_55209$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $map__55213_on_success$jscomp$17$$=$APP.$cljs$core$meta$$(this.params),$map__55213__$1_on_error$jscomp$22$$=$APP.$cljs$core$__destructure_map$$($map__55213_on_success$jscomp$17$$);$map__55213_on_success$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__55213__$1_on_error$jscomp$22$$,
$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);$map__55213__$1_on_error$jscomp$22$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__55213__$1_on_error$jscomp$22$$,$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__55213__$1_on_error$jscomp$22$$,$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($map__55213_on_success$jscomp$17$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3284$delete_team_invitation$$,
this.params)))});return new $app$main$data$team$delete_invitation_55209$$($p__55207$$,$map__55208__$1$$,$map__55208__$1$$,$email$jscomp$6$$,$team_id$jscomp$57$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$set_file_thumbnail$$=function($file_id$jscomp$291$$,$thumbnail_id$$){typeof $app$main$data$dashboard$set_file_thumbnail_71245$$==="undefined"&&($app$main$data$dashboard$set_file_thumbnail_71245$$=function($file_id$jscomp$292$$,$thumbnail_id$jscomp$1$$,$meta71246$$){this.$file_id$=$file_id$jscomp$292$$;this.$thumbnail_id$=$thumbnail_id$jscomp$1$$;this.$meta71246$=$meta71246$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$set_file_thumbnail_71245$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$set_file_thumbnail_71245$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4766$app_DOT_main_DOT_data_DOT_dashboard_SLASH_set_file_thumbnail$$},$app$main$data$dashboard$set_file_thumbnail_71245$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71247$$,$meta71246__$1$$){return new $app$main$data$dashboard$set_file_thumbnail_71245$$(this.$file_id$,this.$thumbnail_id$,$meta71246__$1$$)},$app$main$data$dashboard$set_file_thumbnail_71245$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71246$},$app$main$data$dashboard$set_file_thumbnail_71245$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$set_file_thumbnail_71245$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2639$$,$state$jscomp$957$$){var $self__$jscomp$6639$$=this;return $APP.$app$common$data$update_when$$($APP.$app$common$data$update_in_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$data$update_in_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$data$update_in_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($state$jscomp$957$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1901$files$$,$self__$jscomp$6639$$.$file_id$],null),$APP.$cljs$core$assoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2525$thumbnail_id$$,$self__$jscomp$6639$$.$thumbnail_id$])),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4725$recent_files$$,$self__$jscomp$6639$$.$file_id$],null),$APP.$cljs$core$assoc$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2525$thumbnail_id$$,$self__$jscomp$6639$$.$thumbnail_id$])),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4734$deleted_files$$,$self__$jscomp$6639$$.$file_id$],null),$APP.$cljs$core$assoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2525$thumbnail_id$$,$self__$jscomp$6639$$.$thumbnail_id$])),$APP.$cljs$cst$4767$dashboard_search_result$$,
function($files$jscomp$17$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__71244_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$6639$$.$file_id$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__71244_SHARP_$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__71244_SHARP_$$,$APP.$cljs$cst$2525$thumbnail_id$$,$self__$jscomp$6639$$.$thumbnail_id$):$p1__71244_SHARP_$$},$files$jscomp$17$$)})});return new $app$main$data$dashboard$set_file_thumbnail_71245$$($file_id$jscomp$291$$,
$thumbnail_id$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$hooks$use_dynamic_grid_item_width$cljs$0core$0IFn$0_invoke$0arity$01$$=function($itemsize_limit__$1$jscomp$1$$){var $width_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$th_size_width$jscomp$78$$=$APP.$cljs$core$_deref$$($width_STAR_$$),$rowref$$=(0,$APP.$rumext$v2$use_ref$$)();$itemsize_limit__$1$jscomp$1$$=Math.max(1,Math.min(10,$APP.$app$common$math$floor$$($th_size_width$jscomp$78$$!=null?$th_size_width$jscomp$78$$/($itemsize_limit__$1$jscomp$1$$!=null?
$itemsize_limit__$1$jscomp$1$$:$th_size_width$jscomp$78$$>=1030?280:230):0)));$th_size_width$jscomp$78$$=$APP.$cljs$core$truth_$$($th_size_width$jscomp$78$$)?$APP.$app$common$math$floor$$(($th_size_width$jscomp$78$$-32-($itemsize_limit__$1$jscomp$1$$-1)*24)/$itemsize_limit__$1$jscomp$1$$-12):null;var $th_size__$1$$=$APP.$cljs$core$even_QMARK_$$($th_size_width$jscomp$78$$|0)?$th_size_width$jscomp$78$$:$th_size_width$jscomp$78$$-1;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($th_size__$1$$)],
function(){if($APP.$cljs$core$truth_$$($th_size__$1$$)){var $node$jscomp$260$$=$APP.$rumext$v2$ref_val$$($rowref$$);$node$jscomp$260$$.style.setProperty("--th-width",[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($th_size__$1$$),"px"].join(""));return $node$jscomp$260$$.style.setProperty("--th-height",[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$math$ceil$$(2/3*$th_size__$1$$)),"px"].join(""))}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],
function(){var $mnt_QMARK_$$=$APP.$cljs$core$volatile_BANG_$$(!0),$sub$jscomp$4$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($entries$jscomp$12_row_width$$){$entries$jscomp$12_row_width$$=$APP.$cljs$core$first$$($entries$jscomp$12_row_width$$).contentRect.width;return $APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($mnt_QMARK_$$))?$APP.$cljs$core$reset_BANG_$$($width_STAR_$$,$entries$jscomp$12_row_width$$):null},$app$util$webapi$observe_resize$$($APP.$rumext$v2$ref_val$$($rowref$$)));
return function(){$APP.$cljs$core$_vreset_BANG_$$($mnt_QMARK_$$,!1);return $APP.$beicon$v2$core$_dispose$$($sub$jscomp$4$$)}});return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$rowref$$,$itemsize_limit__$1$jscomp$1$$],null)};
$cljs$core$partition_all$cljs$0core$0IFn$0_invoke$0arity$03$$=function($n$jscomp$143$$,$step$jscomp$7$$,$coll$jscomp$739$$){return new $APP.$cljs$core$LazySeq$$(null,function(){var $temp__5825__auto__$jscomp$18$$=$APP.$cljs$core$seq$$($coll$jscomp$739$$);return $temp__5825__auto__$jscomp$18$$?$APP.$cljs$core$cons$$($APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$($n$jscomp$143$$,$temp__5825__auto__$jscomp$18$$),$cljs$core$partition_all$cljs$0core$0IFn$0_invoke$0arity$03$$($n$jscomp$143$$,$step$jscomp$7$$,
$APP.$cljs$core$drop$cljs$0core$0IFn$0_invoke$0arity$02$$($step$jscomp$7$$,$temp__5825__auto__$jscomp$18$$))):null},null,null)};
$app$main$ui$dashboard$subscription$show_subscription_members_banner_QMARK_$$=function($and__5023__auto__$jscomp$586_team$jscomp$9$$,$editors$jscomp$3_profile$jscomp$30$$){var $seats$jscomp$2_subscription$jscomp$5$$=$APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($and__5023__auto__$jscomp$586_team$jscomp$9$$),$subscription_type$jscomp$5$$=$APP.$app$main$ui$dashboard$subscription$get_subscription_type$$($seats$jscomp$2_subscription$jscomp$5$$);$seats$jscomp$2_subscription$jscomp$5$$=
$APP.$cljs$cst$4852$seats$$.$cljs$core$IFn$_invoke$arity$1$($seats$jscomp$2_subscription$jscomp$5$$);$editors$jscomp$3_profile$jscomp$30$$=$APP.$cljs$core$count$$($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$($editors$jscomp$3_profile$jscomp$30$$))));$and__5023__auto__$jscomp$586_team$jscomp$9$$=$APP.$cljs$cst$1582$is_owner$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($and__5023__auto__$jscomp$586_team$jscomp$9$$));
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$586_team$jscomp$9$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$5$$,"unlimited")&&$seats$jscomp$2_subscription$jscomp$5$$<25&&$editors$jscomp$3_profile$jscomp$30$$-$seats$jscomp$2_subscription$jscomp$5$$>=4:$and__5023__auto__$jscomp$586_team$jscomp$9$$};
$app$main$data$dashboard$handle_change_team_org$$=function($p__71401$$){var $map__71402__$1$$=$APP.$cljs$core$__destructure_map$$($p__71401$$),$team_id$jscomp$98$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71402__$1$$,$APP.$cljs$cst$1912$team_id$$),$organization_id$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71402__$1$$,$APP.$cljs$cst$4782$organization_id$$),$organization_name$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71402__$1$$,$APP.$cljs$cst$4783$organization_name$$);
typeof $app$main$data$dashboard$handle_change_team_org_71403$$==="undefined"&&($app$main$data$dashboard$handle_change_team_org_71403$$=function($p__71401$jscomp$1$$,$map__71402$jscomp$1$$,$team_id$jscomp$99$$,$organization_id$jscomp$1$$,$organization_name$jscomp$1$$,$meta71404$$){this.$p__71401$=$p__71401$jscomp$1$$;this.$map__71402$=$map__71402$jscomp$1$$;this.$team_id$=$team_id$jscomp$99$$;this.$organization_id$=$organization_id$jscomp$1$$;this.$organization_name$=$organization_name$jscomp$1$$;
this.$meta71404$=$meta71404$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$handle_change_team_org_71403$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$handle_change_team_org_71403$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4784$app_DOT_main_DOT_data_DOT_dashboard_SLASH_handle_change_team_org$$},$app$main$data$dashboard$handle_change_team_org_71403$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_71405$$,$meta71404__$1$$){return new $app$main$data$dashboard$handle_change_team_org_71403$$(this.$p__71401$,this.$map__71402$,this.$team_id$,this.$organization_id$,this.$organization_name$,$meta71404__$1$$)},$app$main$data$dashboard$handle_change_team_org_71403$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71404$},$app$main$data$dashboard$handle_change_team_org_71403$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$handle_change_team_org_71403$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2653$$,$state$jscomp$965$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1226$nitrate$$)?$APP.$app$common$data$update_in_when$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($state$jscomp$965$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2133$teams$$,this.$team_id$],null),$APP.$cljs$core$assoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4782$organization_id$$,
this.$organization_id$,$APP.$cljs$cst$4783$organization_name$$,this.$organization_name$])):$state$jscomp$965$$});return new $app$main$data$dashboard$handle_change_team_org_71403$$($p__71401$$,$map__71402__$1$$,$team_id$jscomp$98$$,$organization_id$$,$organization_name$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$go_to_dashboard_deleted$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($p__52393$$){var $map__52394__$1$$=$APP.$cljs$core$__destructure_map$$($p__52393$$),$team_id$jscomp$23$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52394__$1$$,$APP.$cljs$cst$1912$team_id$$);typeof $app$main$data$common$go_to_dashboard_deleted_52395$$==="undefined"&&($app$main$data$common$go_to_dashboard_deleted_52395$$=function($p__52393$jscomp$1$$,$map__52394$jscomp$1$$,$options$jscomp$478$$,
$team_id$jscomp$24$$,$meta52396$$){this.$p__52393$=$p__52393$jscomp$1$$;this.$map__52394$=$map__52394$jscomp$1$$;this.options=$options$jscomp$478$$;this.$team_id$=$team_id$jscomp$24$$;this.$meta52396$=$meta52396$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$go_to_dashboard_deleted_52395$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$go_to_dashboard_deleted_52395$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$2492$app_DOT_main_DOT_data_DOT_common_SLASH_go_to_dashboard_deleted$$},$app$main$data$common$go_to_dashboard_deleted_52395$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52397$$,$meta52396__$1$$){return new $app$main$data$common$go_to_dashboard_deleted_52395$$(this.$p__52393$,this.$map__52394$,this.options,this.$team_id$,$meta52396__$1$$)},$app$main$data$common$go_to_dashboard_deleted_52395$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta52396$},
$app$main$data$common$go_to_dashboard_deleted_52395$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$go_to_dashboard_deleted_52395$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1556_profile$jscomp$4$$,$params$jscomp$159_state$jscomp$140_team_id__$1$jscomp$6$$){$_$jscomp$1556_profile$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($params$jscomp$159_state$jscomp$140_team_id__$1$jscomp$6$$,$APP.$cljs$cst$1899$profile$$);
$params$jscomp$159_state$jscomp$140_team_id__$1$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$205$default$$,this.$team_id$)?$APP.$cljs$cst$2453$default_team_id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$1556_profile$jscomp$4$$):$APP.$cljs$core$uuid_QMARK_$$(this.$team_id$)?this.$team_id$:$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$159_state$jscomp$140_team_id__$1$jscomp$6$$);$params$jscomp$159_state$jscomp$140_team_id__$1$jscomp$6$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1912$team_id$$,$params$jscomp$159_state$jscomp$140_team_id__$1$jscomp$6$$],null);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$modal$hide$$(),$APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$2493$dashboard_deleted$$,$params$jscomp$159_state$jscomp$140_team_id__$1$jscomp$6$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.options])))});return new $app$main$data$common$go_to_dashboard_deleted_52395$$($p__52393$$,
$map__52394__$1$$,$map__52394__$1$$,$team_id$jscomp$23$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$open_selected_file$$=function(){typeof $app$main$data$dashboard$open_selected_file_71377$$==="undefined"&&($app$main$data$dashboard$open_selected_file_71377$$=function($meta71378$$){this.$meta71378$=$meta71378$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$open_selected_file_71377$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$open_selected_file_71377$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4780$app_DOT_main_DOT_data_DOT_dashboard_SLASH_open_selected_file$$},$app$main$data$dashboard$open_selected_file_71377$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71379$$,$meta71378__$1$$){return new $app$main$data$dashboard$open_selected_file_71377$$($meta71378__$1$$)},$app$main$data$dashboard$open_selected_file_71377$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71378$},$app$main$data$dashboard$open_selected_file_71377$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$open_selected_file_71377$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2651_vec__71385$$,$file_id$jscomp$293_state$jscomp$964$$){$_$jscomp$2651_vec__71385$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file_id$jscomp$293_state$jscomp$964$$,$APP.$cljs$cst$2143$selected_files$$);$file_id$jscomp$293_state$jscomp$964$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($_$jscomp$2651_vec__71385$$,0,
null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($_$jscomp$2651_vec__71385$$))?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$common$go_to_workspace$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$293_state$jscomp$964$$]))):$APP.$beicon$v2$core$empty$$()});return new $app$main$data$dashboard$open_selected_file_71377$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$dashboard$team$webhooks_list_STAR_$$=function($props_71899$$){var $permissions$jscomp$23$$=$props_71899$$.permissions;return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__table-rows main_ui_dashboard_team__webhook-table",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$51$$,$webhook$jscomp$2$$){$out_arr__44057__auto__$jscomp$51$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$webhook_item_STAR_$$,
{webhook:$webhook$jscomp$2$$,permissions:$permissions$jscomp$23$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($webhook$jscomp$2$$)??"")));return $out_arr__44057__auto__$jscomp$51$$},[],$props_71899$$.webhooks)})};
$app$main$ui$dashboard$team$webhooks_hero_STAR_$$=function(){return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__webhooks-hero-container",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_dashboard_team__hero-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.webhooks")}),$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{className:"main_ui_dashboard_team__hero-desc",content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.webhooks.description")}),
(0,$APP.$rumext$v2$jsx$$)("button",{onClick: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$$($APP.$cljs$cst$4904$webhook$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$))},className:"main_ui_dashboard_team__hero-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.webhooks.create")})]})};
$app$main$ui$dashboard$team$empty_invitation_table_STAR_$$=function($on_invite_member$jscomp$1_props_71825_route$jscomp$9$$){var $can_invite$jscomp$2$$=$on_invite_member$jscomp$1_props_71825_route$jscomp$9$$.canInvite,$team$jscomp$20$$=$on_invite_member$jscomp$1_props_71825_route$jscomp$9$$.team;$on_invite_member$jscomp$1_props_71825_route$jscomp$9$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$route$$);var $invite_email$jscomp$2$$=$APP.$cljs$cst$4883$invite_email$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2229$query_params$$.$cljs$core$IFn$_invoke$arity$1$($on_invite_member$jscomp$1_props_71825_route$jscomp$9$$));
$on_invite_member$jscomp$1_props_71825_route$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$20$$),$APP.$rumext$v2$adapt$$($invite_email$jscomp$2$$)],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,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$4888$invite_members$$,$APP.$cljs$cst$2449$team$$,
$team$jscomp$20$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$2449$team$$,$APP.$cljs$cst$4883$invite_email$$,$invite_email$jscomp$2$$],null)))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__empty-invitations",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.no-invitations")}),$can_invite$jscomp$2$$?new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[(0,$APP.$rumext$v2$jsx$$)("span",
{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.no-invitations-gather-people")}),(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$on_invite_member$jscomp$1_props_71825_route$jscomp$9$$,"data-testid":"invite-member",className:"main_ui_dashboard_team__btn-empty-invitations",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.invite-profile")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__blank-space"})],null):null]})};
$app$main$ui$dashboard$team$team_members_STAR_$$=function($owner$jscomp$5_props_71795$$){var $profile$jscomp$36$$=$owner$jscomp$5_props_71795$$.profile,$team$jscomp$18$$=$owner$jscomp$5_props_71795$$.team,$members$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$18$$,$APP.$cljs$cst$3239$members$$),$total_members$jscomp$1$$=$APP.$cljs$core$count$$($members$jscomp$5$$);$owner$jscomp$5_props_71795$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($members$jscomp$5$$)],
function(){return $APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$cst$1582$is_owner$$,$members$jscomp$5$$)});var $members__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$18$$)],function(){return $APP.$cljs$core$vec$$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1582$is_owner$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1553$created_at$$,$APP.$cljs$cst$3239$members$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$18$$))))});
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__dashboard-table main_ui_dashboard_team__team-members",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__table-header",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__table-field main_ui_dashboard_team__title-field-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.member")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__table-field main_ui_dashboard_team__title-field-role",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.role")})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__table-rows",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$team_member_STAR_$$,{member:$owner$jscomp$5_props_71795$$,team:$team$jscomp$18$$,profile:$profile$jscomp$36$$,totalMembers:$total_members$jscomp$1$$}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$48$$,$item$jscomp$103$$){$out_arr__44057__auto__$jscomp$48$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$team_member_STAR_$$,
{member:$item$jscomp$103$$,team:$team$jscomp$18$$,profile:$profile$jscomp$36$$,totalMembers:$total_members$jscomp$1$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$103$$)??"")));return $out_arr__44057__auto__$jscomp$48$$},[],$members__$1$$)]})]})};
$app$main$ui$dashboard$team$webhooks_page_STAR_$$=function($props_71900_webhooks$jscomp$3$$){var $team$jscomp$25$$=$props_71900_webhooks$jscomp$3$$.team;$props_71900_webhooks$jscomp$3$$=$APP.$cljs$cst$1208$webhooks$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$25$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$25$$)],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.team-webhooks",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$25$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$25$$)])))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$team$fetch_webhooks$$())});
return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$header$$,{team:$team$jscomp$25$$,section:$APP.$cljs$cst$4887$dashboard_team_webhooks$$}),(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_dashboard_team__dashboard-container main_ui_dashboard_team__dashboard-team-webhooks",children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$webhooks_hero_STAR_$$,
{}),$APP.$cljs$core$empty_QMARK_$$($props_71900_webhooks$jscomp$3$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__webhooks-empty",children:[(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.webhooks.empty.no-webhooks")}),(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.webhooks.empty.add-one")})]}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$webhooks_list_STAR_$$,
{webhooks:$props_71900_webhooks$jscomp$3$$,permissions:$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$25$$)})]})})]})};
$app$main$ui$dashboard$subscription$members_cta_STAR_$$=function(){return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$cta$cta_STAR_$$,{className:"main_ui_dashboard_subscription__members-cta",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.dashboard.unlimited-members-extra-editors-cta-title"),children:$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{tagName:"span",className:"main_ui_dashboard_subscription__cta-message",content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.dashboard.unlimited-members-extra-editors-cta-text")})})};
$app$main$ui$dashboard$team$team_members_page_STAR_$$=function($props_71798$$){var $profile$jscomp$37$$=$props_71798$$.profile,$team$jscomp$19$$=$props_71798$$.team;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$19$$)],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.team-members",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$19$$))?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$19$$)])))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$team$fetch_members$cljs$0core$0IFn$0_invoke$0arity$01$$(null))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$header$$,
{section:$APP.$cljs$cst$4884$dashboard_team_members$$,team:$team$jscomp$19$$}),(0,$APP.$rumext$v2$jsxs$$)("section",{className:"main_ui_dashboard_team__dashboard-container main_ui_dashboard_team__dashboard-team-members",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$team_members_STAR_$$,{profile:$profile$jscomp$37$$,team:$team$jscomp$19$$}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$616$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1216$subscriptions$$);
return $and__5023__auto__$jscomp$616$$?$app$main$ui$dashboard$subscription$show_subscription_members_banner_QMARK_$$($team$jscomp$19$$,$profile$jscomp$37$$):$and__5023__auto__$jscomp$616$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$subscription$members_cta_STAR_$$,{team:$team$jscomp$19$$}):null]})]})};
$app$main$ui$dashboard$subscription$team_STAR_$$=function($go_to_manage_subscription_props_71680_subscription$jscomp$2$$){var $is_owner$$=$go_to_manage_subscription_props_71680_subscription$jscomp$2$$.isOwner;$go_to_manage_subscription_props_71680_subscription$jscomp$2$$=$APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($go_to_manage_subscription_props_71680_subscription$jscomp$2$$.team);var $subscription_type$jscomp$1$$=$APP.$app$main$ui$dashboard$subscription$get_subscription_type$$($go_to_manage_subscription_props_71680_subscription$jscomp$2$$),
$subscription_is_trial$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("trialing",$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($go_to_manage_subscription_props_71680_subscription$jscomp$2$$));$go_to_manage_subscription_props_71680_subscription$jscomp$2$$=$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,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$$,"dashboard",$APP.$cljs$cst$1355$section$$,"team-settings"],null)));var $href$jscomp$12_href__$1$jscomp$1$$=encodeURIComponent($APP.$app$util$globals$location$$.href);$href$jscomp$12_href__$1$jscomp$1$$=["payments/subscriptions/show?returnUrl\x3d",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($href$jscomp$12_href__$1$jscomp$1$$)].join("");
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$12_href__$1$jscomp$1$$])))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_subscription__team",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_subscription__team-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.dashboard.team-plan")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_subscription__team-text",children:function(){switch($subscription_type$jscomp$1$$){case "professional":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.professional");case "unlimited":return $subscription_is_trial$jscomp$1$$?$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");
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$1$$)].join(""));}}()}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_owner$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$1$$,"professional"):$is_owner$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$go_to_manage_subscription_props_71680_subscription$jscomp$2$$,
"data-testid":"manage-subscription-link",className:"main_ui_dashboard_subscription__manage-subscription-link",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.settings.manage-your-subscription")}):null]})};
$app$main$data$dashboard$restore_files$$=function($p__71495$$){var $map__71496__$1$$=$APP.$cljs$core$__destructure_map$$($p__71495$$),$team_id$jscomp$106$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71496__$1$$,$APP.$cljs$cst$1912$team_id$$),$ids$jscomp$254$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71496__$1$$,$APP.$cljs$cst$1707$ids$$),$on_success$jscomp$42$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71496__$1$$,$APP.$cljs$cst$2445$on_success$$),
$on_error$jscomp$51$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71496__$1$$,$APP.$cljs$cst$1281$on_error$$);typeof $app$main$data$dashboard$restore_files_71497$$==="undefined"&&($app$main$data$dashboard$restore_files_71497$$=function($p__71495$jscomp$1$$,$map__71496$jscomp$1$$,$team_id$jscomp$107$$,$ids$jscomp$255$$,$on_success$jscomp$43$$,$on_error$jscomp$52$$,$meta71498$$){this.$p__71495$=$p__71495$jscomp$1$$;this.$map__71496$=$map__71496$jscomp$1$$;this.$team_id$=$team_id$jscomp$107$$;
this.ids=$ids$jscomp$255$$;this.$on_success$=$on_success$jscomp$43$$;this.$on_error$=$on_error$jscomp$52$$;this.$meta71498$=$meta71498$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$restore_files_71497$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$restore_files_71497$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4788$app_DOT_main_DOT_data_DOT_dashboard_SLASH_restore_files$$},
$app$main$data$dashboard$restore_files_71497$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71499$$,$meta71498__$1$$){return new $app$main$data$dashboard$restore_files_71497$$(this.$p__71495$,this.$map__71496$,this.$team_id$,this.ids,this.$on_success$,this.$on_error$,$meta71498__$1$$)},$app$main$data$dashboard$restore_files_71497$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71498$},$app$main$data$dashboard$restore_files_71497$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$restore_files_71497$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$6696$$=this;return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$common$initialize_progress$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,3,[$APP.$cljs$cst$2456$slow_progress_threshold$$,1E3,$APP.$cljs$cst$2286$total$$,
$APP.$cljs$core$count$$($self__$jscomp$6696$$.ids),$APP.$cljs$cst$2455$hints$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2204$progress$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.progress-notification.restoring-files")},$APP.$cljs$cst$2462$slow$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.progress-notification.slow-restore")}],null)],null)]))),function(){var $stream$jscomp$93$$=$APP.$beicon$v2$core$share$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2220$app_DOT_util_DOT_sse_SLASH_restore_deleted_team_files$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6696$$.$team_id$,$APP.$cljs$cst$1707$ids$$,$self__$jscomp$6696$$.ids],null)));return $APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$beicon$v2$core$empty$$,$APP.$beicon$v2$core$mapcat$$(function($event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$){$event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$=$APP.$app$util$sse$get_payload$$($event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$);
if($APP.$cljs$core$truth_$$($event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$)){var $map__71513__$1_total$jscomp$15$$=$APP.$cljs$core$__destructure_map$$($event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$);$event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71513__$1_total$jscomp$15$$,$APP.$cljs$cst$1779$index$$);$map__71513__$1_total$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71513__$1_total$jscomp$15$$,
$APP.$cljs$cst$2286$total$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$)?$map__71513__$1_total$jscomp$15$$:$event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$)?(0,$APP.$beicon$v2$core$of$$)($app$main$data$common$update_progress$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1779$index$$,$event$jscomp$129_index$jscomp$374_temp__5823__auto__$jscomp$194$$,$APP.$cljs$cst$2286$total$$,$map__71513__$1_total$jscomp$15$$],
null))):$APP.$beicon$v2$core$empty$$()}return $APP.$beicon$v2$core$empty$$()},$APP.$beicon$v2$core$filter$$($app$util$sse$progress_QMARK_$$,$stream$jscomp$93$$))),$APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error$jscomp$78$$){return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$common$clear_progress$$()),$self__$jscomp$6696$$.$on_error$.$cljs$core$IFn$_invoke$arity$1$?$self__$jscomp$6696$$.$on_error$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$78$$):
$self__$jscomp$6696$$.$on_error$($error$jscomp$78$$))},$APP.$beicon$v2$core$mapcat$$(function(){return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$common$clear_progress$$(),$app$main$data$dashboard$fetch_projects$$($self__$jscomp$6696$$.$team_id$),$app$main$data$dashboard$fetch_deleted_files$cljs$0core$0IFn$0_invoke$0arity$01$$($self__$jscomp$6696$$.$team_id$),$app$main$data$dashboard$fetch_projects$$($self__$jscomp$6696$$.$team_id$)),$self__$jscomp$6696$$.$on_success$.$cljs$core$IFn$_invoke$arity$0$?
$self__$jscomp$6696$$.$on_success$.$cljs$core$IFn$_invoke$arity$0$():$self__$jscomp$6696$$.$on_success$())},$APP.$beicon$v2$core$map$$($APP.$app$util$sse$get_payload$$,$APP.$beicon$v2$core$filter$$($APP.$app$util$sse$end_of_stream_QMARK_$$,$stream$jscomp$93$$)))))}())});return new $app$main$data$dashboard$restore_files_71497$$($p__71495$$,$map__71496__$1$$,$team_id$jscomp$106$$,$ids$jscomp$254$$,$on_success$jscomp$42$$,$on_error$jscomp$51$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$restore_project_immediately$$=function($p__71543$$){var $map__71544__$1$$=$APP.$cljs$core$__destructure_map$$($p__71543$$),$team_id$jscomp$110$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71544__$1$$,$APP.$cljs$cst$1912$team_id$$),$id$jscomp$808$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71544__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$386$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71544__$1$$,$APP.$cljs$cst$723$name$$);
typeof $app$main$data$dashboard$restore_project_immediately_71545$$==="undefined"&&($app$main$data$dashboard$restore_project_immediately_71545$$=function($p__71543$jscomp$1$$,$map__71544$jscomp$1$$,$project$jscomp$14$$,$team_id$jscomp$111$$,$id$jscomp$809$$,$name$jscomp$387$$,$meta71546$$){this.$p__71543$=$p__71543$jscomp$1$$;this.$map__71544$=$map__71544$jscomp$1$$;this.project=$project$jscomp$14$$;this.$team_id$=$team_id$jscomp$111$$;this.id=$id$jscomp$809$$;this.name=$name$jscomp$387$$;this.$meta71546$=
$meta71546$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$restore_project_immediately_71545$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$restore_project_immediately_71545$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4790$app_DOT_main_DOT_data_DOT_dashboard_SLASH_restore_project_immediately$$},$app$main$data$dashboard$restore_project_immediately_71545$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_71547$$,$meta71546__$1$$){return new $app$main$data$dashboard$restore_project_immediately_71545$$(this.$p__71543$,this.$map__71544$,this.project,this.$team_id$,this.id,this.name,$meta71546__$1$$)},$app$main$data$dashboard$restore_project_immediately_71545$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71546$},$app$main$data$dashboard$restore_project_immediately_71545$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$restore_project_immediately_71545$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2659_ids$jscomp$258$$,$state$jscomp$969$$){var $self__$jscomp$6704$$=this;$_$jscomp$2659_ids$jscomp$258$$=$APP.$cljs$core$reduce_kv$$(function($acc$jscomp$133$$,$file_id$jscomp$295$$,$file$jscomp$82$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$82$$),$self__$jscomp$6704$$.id)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$133$$,$file_id$jscomp$295$$):$acc$jscomp$133$$},
$APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$969$$,$APP.$cljs$cst$4734$deleted_files$$));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"restore-files",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard:trash",$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6704$$.$team_id$,
$APP.$cljs$cst$2141$project_id$$,$self__$jscomp$6704$$.id,$APP.$cljs$cst$4774$num_files$$,$APP.$cljs$core$count$$($_$jscomp$2659_ids$jscomp$258$$)],null)),$app$main$data$dashboard$restore_files$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6704$$.$team_id$,$APP.$cljs$cst$1707$ids$$,$_$jscomp$2659_ids$jscomp$258$$,$APP.$cljs$cst$2445$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$variadic$("dashboard.restore-success-notification",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$self__$jscomp$6704$$.name]))))},$APP.$cljs$cst$1281$on_error$$,function(){return $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$variadic$("dashboard.errors.error-on-restoring-project",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$self__$jscomp$6704$$.name]))))}],null)))});return new $app$main$data$dashboard$restore_project_immediately_71545$$($p__71543$$,
$map__71544__$1$$,$map__71544__$1$$,$team_id$jscomp$110$$,$id$jscomp$808$$,$name$jscomp$386$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$restore_files_immediately$$=function($p__71522$$){var $map__71523__$1$$=$APP.$cljs$core$__destructure_map$$($p__71522$$),$team_id$jscomp$108$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71523__$1$$,$APP.$cljs$cst$1912$team_id$$),$ids$jscomp$256$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71523__$1$$,$APP.$cljs$cst$1707$ids$$);typeof $app$main$data$dashboard$restore_files_immediately_71525$$==="undefined"&&($app$main$data$dashboard$restore_files_immediately_71525$$=
function($p__71522$jscomp$1$$,$map__71523$jscomp$1$$,$team_id$jscomp$109$$,$ids$jscomp$257$$,$meta71526$$){this.$p__71522$=$p__71522$jscomp$1$$;this.$map__71523$=$map__71523$jscomp$1$$;this.$team_id$=$team_id$jscomp$109$$;this.ids=$ids$jscomp$257$$;this.$meta71526$=$meta71526$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$restore_files_immediately_71525$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$restore_files_immediately_71525$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4789$app_DOT_main_DOT_data_DOT_dashboard_SLASH_restore_files_immediately$$},$app$main$data$dashboard$restore_files_immediately_71525$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71527$$,$meta71526__$1$$){return new $app$main$data$dashboard$restore_files_immediately_71525$$(this.$p__71522$,this.$map__71523$,this.$team_id$,this.ids,$meta71526__$1$$)},
$app$main$data$dashboard$restore_files_immediately_71525$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71526$},$app$main$data$dashboard$restore_files_immediately_71525$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$restore_files_immediately_71525$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2658$$,$state$jscomp$968$$){var $self__$jscomp$6700$$=this,$deleted_files$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$968$$,
$APP.$cljs$cst$4734$deleted_files$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"restore-files",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard:trash",$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6700$$.$team_id$,$APP.$cljs$cst$4774$num_files$$,$APP.$cljs$core$count$$($self__$jscomp$6700$$.ids)],null)),$app$main$data$dashboard$restore_files$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6700$$.$team_id$,$APP.$cljs$cst$1707$ids$$,$self__$jscomp$6700$$.ids,$APP.$cljs$cst$2445$on_success$$,function(){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($self__$jscomp$6700$$.ids))){var $fname$jscomp$1$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($deleted_files$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($self__$jscomp$6700$$.ids),
$APP.$cljs$cst$723$name$$],null));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.restore-success-notification",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$fname$jscomp$1$$]))))}return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.restore-files-success-notification",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$count$$($self__$jscomp$6700$$.ids)]))))},$APP.$cljs$cst$1281$on_error$$,function(){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($self__$jscomp$6700$$.ids))){var $fname$jscomp$2$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($deleted_files$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($self__$jscomp$6700$$.ids),
$APP.$cljs$cst$723$name$$],null));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.errors.error-on-restore-file",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$fname$jscomp$2$$]))))}return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.errors.error-on-restore-files")))}],null)))});return new $app$main$data$dashboard$restore_files_immediately_71525$$($p__71522$$,
$map__71523__$1$$,$team_id$jscomp$108$$,$ids$jscomp$256$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$delete_files$$=function($p__71431$$){var $map__71432__$1$$=$APP.$cljs$core$__destructure_map$$($p__71431$$),$team_id$jscomp$100$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71432__$1$$,$APP.$cljs$cst$1912$team_id$$),$ids$jscomp$249$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71432__$1$$,$APP.$cljs$cst$1707$ids$$),$on_success$jscomp$38$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71432__$1$$,$APP.$cljs$cst$2445$on_success$$),
$on_error$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71432__$1$$,$APP.$cljs$cst$1281$on_error$$);typeof $app$main$data$dashboard$delete_files_71434$$==="undefined"&&($app$main$data$dashboard$delete_files_71434$$=function($p__71431$jscomp$1$$,$map__71432$jscomp$1$$,$team_id$jscomp$101$$,$ids$jscomp$250$$,$on_success$jscomp$39$$,$on_error$jscomp$48$$,$meta71435$$){this.$p__71431$=$p__71431$jscomp$1$$;this.$map__71432$=$map__71432$jscomp$1$$;this.$team_id$=$team_id$jscomp$101$$;
this.ids=$ids$jscomp$250$$;this.$on_success$=$on_success$jscomp$39$$;this.$on_error$=$on_error$jscomp$48$$;this.$meta71435$=$meta71435$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$delete_files_71434$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$delete_files_71434$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4785$app_DOT_main_DOT_data_DOT_dashboard_SLASH_delete_files$$},
$app$main$data$dashboard$delete_files_71434$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71436$$,$meta71435__$1$$){return new $app$main$data$dashboard$delete_files_71434$$(this.$p__71431$,this.$map__71432$,this.$team_id$,this.ids,this.$on_success$,this.$on_error$,$meta71435__$1$$)},$app$main$data$dashboard$delete_files_71434$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71435$},$app$main$data$dashboard$delete_files_71434$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$delete_files_71434$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$6684$$=this,$stream$jscomp$92$$=$APP.$beicon$v2$core$share$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2225$app_DOT_util_DOT_sse_SLASH_permanently_delete_team_files$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6684$$.$team_id$,$APP.$cljs$cst$1707$ids$$,
$self__$jscomp$6684$$.ids],null)));return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$common$initialize_progress$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,3,[$APP.$cljs$cst$2456$slow_progress_threshold$$,1E3,$APP.$cljs$cst$2286$total$$,$APP.$cljs$core$count$$($self__$jscomp$6684$$.ids),$APP.$cljs$cst$2455$hints$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$2204$progress$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.progress-notification.deleting-files")},$APP.$cljs$cst$2462$slow$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.progress-notification.slow-delete")}],null)],null)]))),$APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$beicon$v2$core$empty$$,$APP.$beicon$v2$core$mapcat$$(function($event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$){$event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$=
$APP.$app$util$sse$get_payload$$($event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$);if($APP.$cljs$core$truth_$$($event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$)){var $map__71447__$1_total$jscomp$14$$=$APP.$cljs$core$__destructure_map$$($event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$);$event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71447__$1_total$jscomp$14$$,$APP.$cljs$cst$1779$index$$);
$map__71447__$1_total$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71447__$1_total$jscomp$14$$,$APP.$cljs$cst$2286$total$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$)?$map__71447__$1_total$jscomp$14$$:$event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$)?(0,$APP.$beicon$v2$core$of$$)($app$main$data$common$update_progress$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1779$index$$,
$event$jscomp$128_index$jscomp$373_temp__5823__auto__$jscomp$193$$,$APP.$cljs$cst$2286$total$$,$map__71447__$1_total$jscomp$14$$],null))):$APP.$beicon$v2$core$empty$$()}return $APP.$beicon$v2$core$empty$$()},$APP.$beicon$v2$core$filter$$($app$util$sse$progress_QMARK_$$,$stream$jscomp$92$$))),$APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error$jscomp$77$$){return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$common$clear_progress$$()),$self__$jscomp$6684$$.$on_error$.$cljs$core$IFn$_invoke$arity$1$?
$self__$jscomp$6684$$.$on_error$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$77$$):$self__$jscomp$6684$$.$on_error$($error$jscomp$77$$))},$APP.$beicon$v2$core$merge_map$$(function(){return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$common$clear_progress$$(),$app$main$data$dashboard$fetch_projects$$($self__$jscomp$6684$$.$team_id$),$app$main$data$dashboard$fetch_deleted_files$cljs$0core$0IFn$0_invoke$0arity$01$$($self__$jscomp$6684$$.$team_id$),$app$main$data$dashboard$fetch_projects$$($self__$jscomp$6684$$.$team_id$)),
$self__$jscomp$6684$$.$on_success$.$cljs$core$IFn$_invoke$arity$0$?$self__$jscomp$6684$$.$on_success$.$cljs$core$IFn$_invoke$arity$0$():$self__$jscomp$6684$$.$on_success$())},$APP.$beicon$v2$core$map$$($APP.$app$util$sse$get_payload$$,$APP.$beicon$v2$core$filter$$($APP.$app$util$sse$end_of_stream_QMARK_$$,$stream$jscomp$92$$)))))});return new $app$main$data$dashboard$delete_files_71434$$($p__71431$$,$map__71432__$1$$,$team_id$jscomp$100$$,$ids$jscomp$249$$,$on_success$jscomp$38$$,$on_error$jscomp$47$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$delete_project_immediately$$=function($p__71471$$){var $map__71472__$1$$=$APP.$cljs$core$__destructure_map$$($p__71471$$),$team_id$jscomp$104$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71472__$1$$,$APP.$cljs$cst$1912$team_id$$),$id$jscomp$806$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71472__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$384$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71472__$1$$,$APP.$cljs$cst$723$name$$);
typeof $app$main$data$dashboard$delete_project_immediately_71474$$==="undefined"&&($app$main$data$dashboard$delete_project_immediately_71474$$=function($p__71471$jscomp$1$$,$map__71472$jscomp$1$$,$project$jscomp$12$$,$team_id$jscomp$105$$,$id$jscomp$807$$,$name$jscomp$385$$,$meta71475$$){this.$p__71471$=$p__71471$jscomp$1$$;this.$map__71472$=$map__71472$jscomp$1$$;this.project=$project$jscomp$12$$;this.$team_id$=$team_id$jscomp$105$$;this.id=$id$jscomp$807$$;this.name=$name$jscomp$385$$;this.$meta71475$=
$meta71475$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$delete_project_immediately_71474$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$delete_project_immediately_71474$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4787$app_DOT_main_DOT_data_DOT_dashboard_SLASH_delete_project_immediately$$},$app$main$data$dashboard$delete_project_immediately_71474$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_71476$$,$meta71475__$1$$){return new $app$main$data$dashboard$delete_project_immediately_71474$$(this.$p__71471$,this.$map__71472$,this.project,this.$team_id$,this.id,this.name,$meta71475__$1$$)},$app$main$data$dashboard$delete_project_immediately_71474$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71475$},$app$main$data$dashboard$delete_project_immediately_71474$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$delete_project_immediately_71474$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2656_ids$jscomp$253$$,$state$jscomp$967$$){var $self__$jscomp$6692$$=this;$_$jscomp$2656_ids$jscomp$253$$=$APP.$cljs$core$reduce_kv$$(function($acc$jscomp$132$$,$file_id$jscomp$294$$,$file$jscomp$81$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$81$$),$self__$jscomp$6692$$.id)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$132$$,$file_id$jscomp$294$$):$acc$jscomp$132$$},
$APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$967$$,$APP.$cljs$cst$4734$deleted_files$$));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"delete-files",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard:trash",$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6692$$.$team_id$,$APP.$cljs$cst$2141$project_id$$,
$self__$jscomp$6692$$.id,$APP.$cljs$cst$4774$num_files$$,$APP.$cljs$core$count$$($_$jscomp$2656_ids$jscomp$253$$)],null)),$app$main$data$dashboard$delete_files$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6692$$.$team_id$,$APP.$cljs$cst$1707$ids$$,$_$jscomp$2656_ids$jscomp$253$$,$APP.$cljs$cst$2445$on_success$$,function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.delete-success-notification",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$self__$jscomp$6692$$.name]))))},$APP.$cljs$cst$1281$on_error$$,function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.errors.error-on-delete-project",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$self__$jscomp$6692$$.name]))))}],null)))});return new $app$main$data$dashboard$delete_project_immediately_71474$$($p__71471$$,
$map__71472__$1$$,$map__71472__$1$$,$team_id$jscomp$104$$,$id$jscomp$806$$,$name$jscomp$384$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$delete_files_immediately$$=function($p__71452$$){var $map__71453__$1$$=$APP.$cljs$core$__destructure_map$$($p__71452$$),$team_id$jscomp$102$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71453__$1$$,$APP.$cljs$cst$1912$team_id$$),$ids$jscomp$251$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71453__$1$$,$APP.$cljs$cst$1707$ids$$);typeof $app$main$data$dashboard$delete_files_immediately_71454$$==="undefined"&&($app$main$data$dashboard$delete_files_immediately_71454$$=
function($p__71452$jscomp$1$$,$map__71453$jscomp$1$$,$params$jscomp$352$$,$team_id$jscomp$103$$,$ids$jscomp$252$$,$meta71455$$){this.$p__71452$=$p__71452$jscomp$1$$;this.$map__71453$=$map__71453$jscomp$1$$;this.params=$params$jscomp$352$$;this.$team_id$=$team_id$jscomp$103$$;this.ids=$ids$jscomp$252$$;this.$meta71455$=$meta71455$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$delete_files_immediately_71454$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$delete_files_immediately_71454$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4786$app_DOT_main_DOT_data_DOT_dashboard_SLASH_delete_files_immediately$$},$app$main$data$dashboard$delete_files_immediately_71454$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71456$$,$meta71455__$1$$){return new $app$main$data$dashboard$delete_files_immediately_71454$$(this.$p__71452$,this.$map__71453$,this.params,
this.$team_id$,this.ids,$meta71455__$1$$)},$app$main$data$dashboard$delete_files_immediately_71454$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71455$},$app$main$data$dashboard$delete_files_immediately_71454$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$delete_files_immediately_71454$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2655$$,$state$jscomp$966$$){var $self__$jscomp$6688$$=this,$deleted_files$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$966$$,$APP.$cljs$cst$4734$deleted_files$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"delete-files",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard:trash",$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6688$$.$team_id$,$APP.$cljs$cst$4774$num_files$$,$APP.$cljs$core$count$$($self__$jscomp$6688$$.ids)],
null)),$app$main$data$dashboard$delete_files$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1912$team_id$$,$self__$jscomp$6688$$.$team_id$,$APP.$cljs$cst$1707$ids$$,$self__$jscomp$6688$$.ids,$APP.$cljs$cst$2445$on_success$$,function(){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($self__$jscomp$6688$$.ids))){var $fname$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($deleted_files$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,
$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($self__$jscomp$6688$$.ids),$APP.$cljs$cst$723$name$$],null));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.delete-success-notification",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$fname$$]))))}return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.delete-files-success-notification",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$count$$($self__$jscomp$6688$$.ids)]))))},$APP.$cljs$cst$1281$on_error$$,function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$error$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.errors.error-on-delete-files")))}],null)))});return new $app$main$data$dashboard$delete_files_immediately_71454$$($p__71452$$,$map__71453__$1$$,$map__71453__$1$$,$team_id$jscomp$102$$,$ids$jscomp$251$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$duplicate_file$$=function($p__71297$$){var $map__71298__$1$$=$APP.$cljs$core$__destructure_map$$($p__71297$$),$id$jscomp$804$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71298__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$381$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71298__$1$$,$APP.$cljs$cst$723$name$$);typeof $app$main$data$dashboard$duplicate_file_71299$$==="undefined"&&($app$main$data$dashboard$duplicate_file_71299$$=function($p__71297$jscomp$1$$,
$map__71298$jscomp$1$$,$params$jscomp$343$$,$id$jscomp$805$$,$name$jscomp$382$$,$meta71300$$){this.$p__71297$=$p__71297$jscomp$1$$;this.$map__71298$=$map__71298$jscomp$1$$;this.params=$params$jscomp$343$$;this.id=$id$jscomp$805$$;this.name=$name$jscomp$382$$;this.$meta71300$=$meta71300$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$duplicate_file_71299$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$duplicate_file_71299$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4771$app_DOT_main_DOT_data_DOT_dashboard_SLASH_duplicate_file$$},$app$main$data$dashboard$duplicate_file_71299$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71301$$,$meta71300__$1$$){return new $app$main$data$dashboard$duplicate_file_71299$$(this.$p__71297$,this.$map__71298$,this.params,this.id,this.name,$meta71300__$1$$)},$app$main$data$dashboard$duplicate_file_71299$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71300$},$app$main$data$dashboard$duplicate_file_71299$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$duplicate_file_71299$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2644_map__71304_on_success$jscomp$35$$,$new_name$jscomp$26_state$jscomp$960_unames$jscomp$17$$){$_$jscomp$2644_map__71304_on_success$jscomp$35$$=$APP.$cljs$core$meta$$(this.params);var $map__71304__$1_on_error$jscomp$44$$=$APP.$cljs$core$__destructure_map$$($_$jscomp$2644_map__71304_on_success$jscomp$35$$);
$_$jscomp$2644_map__71304_on_success$jscomp$35$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__71304__$1_on_error$jscomp$44$$,$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);$map__71304__$1_on_error$jscomp$44$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__71304__$1_on_error$jscomp$44$$,$APP.$cljs$cst$1281$on_error$$,$APP.$beicon$v2$core$throw$0$$);$new_name$jscomp$26_state$jscomp$960_unames$jscomp$17$$=$APP.$app$common$files$helpers$get_used_names$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_name$jscomp$26_state$jscomp$960_unames$jscomp$17$$,
$APP.$cljs$cst$1901$files$$));$new_name$jscomp$26_state$jscomp$960_unames$jscomp$17$$=$APP.$app$common$files$helpers$generate_unique_name$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(this.name,$new_name$jscomp$26_state$jscomp$960_unames$jscomp$17$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1612$suffix_fn$$,function($copy_count$jscomp$4$$){return" "+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.copy-suffix")??"")+(($copy_count$jscomp$4$$>1?
[" ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($copy_count$jscomp$4$$)].join(""):null)??"")}]));return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($map__71304__$1_on_error$jscomp$44$$,$APP.$beicon$v2$core$map$$($APP.$app$main$data$dashboard$file_created$$,$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($_$jscomp$2644_map__71304_on_success$jscomp$35$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4772$duplicate_file$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,this.id,$APP.$cljs$cst$723$name$$,$new_name$jscomp$26_state$jscomp$960_unames$jscomp$17$$],null)))))});return new $app$main$data$dashboard$duplicate_file_71299$$($p__71297$$,$map__71298__$1$$,$map__71298__$1$$,$id$jscomp$804$$,$name$jscomp$381$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$create_file$$=function($p__71276$$){var $map__71277__$1$$=$APP.$cljs$core$__destructure_map$$($p__71276$$),$project_id$jscomp$24$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71277__$1$$,$APP.$cljs$cst$2141$project_id$$),$name$jscomp$379$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71277__$1$$,$APP.$cljs$cst$723$name$$);typeof $app$main$data$dashboard$create_file_71279$$==="undefined"&&($app$main$data$dashboard$create_file_71279$$=function($p__71276$jscomp$1$$,
$map__71277$jscomp$1$$,$params$jscomp$341$$,$project_id$jscomp$25$$,$name$jscomp$380$$,$meta71280$$){this.$p__71276$=$p__71276$jscomp$1$$;this.$map__71277$=$map__71277$jscomp$1$$;this.params=$params$jscomp$341$$;this.$project_id$=$project_id$jscomp$25$$;this.name=$name$jscomp$380$$;this.$meta71280$=$meta71280$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$create_file_71279$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$create_file_71279$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4769$app_DOT_main_DOT_data_DOT_dashboard_SLASH_create_file$$},$app$main$data$dashboard$create_file_71279$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71281$$,$meta71280__$1$$){return new $app$main$data$dashboard$create_file_71279$$(this.$p__71276$,this.$map__71277$,this.params,this.$project_id$,this.name,$meta71280__$1$$)},$app$main$data$dashboard$create_file_71279$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71280$},$app$main$data$dashboard$create_file_71279$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$create_file_71279$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2141$project_id$$,this.$project_id$],null)},$app$main$data$dashboard$create_file_71279$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$create_file_71279$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($it$jscomp$249_map__71291_on_success$jscomp$34$$,$features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$){var $self__$jscomp$6649$$=this,$it__$1$jscomp$126$$=this;$it$jscomp$249_map__71291_on_success$jscomp$34$$=$APP.$cljs$core$meta$$($self__$jscomp$6649$$.params);var $map__71291__$1_on_error$jscomp$43$$=$APP.$cljs$core$__destructure_map$$($it$jscomp$249_map__71291_on_success$jscomp$34$$);$it$jscomp$249_map__71291_on_success$jscomp$34$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__71291__$1_on_error$jscomp$43$$,
$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);$map__71291__$1_on_error$jscomp$43$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__71291__$1_on_error$jscomp$43$$,$APP.$cljs$cst$1281$on_error$$,$APP.$beicon$v2$core$throw$0$$);var $files$jscomp$18_name__$1$jscomp$15$$=$APP.$app$main$data$helpers$lookup_team_files$cljs$0core$0IFn$0_invoke$0arity$02$$($features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$,$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$)),
$unames$jscomp$16$$=$APP.$app$common$files$helpers$get_used_names$$($files$jscomp$18_name__$1$jscomp$15$$),$base_name$jscomp$5$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.new-file-prefix");$files$jscomp$18_name__$1$jscomp$15$$=function(){var $or__5025__auto__$jscomp$863$$=$self__$jscomp$6649$$.name;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$863$$)?$or__5025__auto__$jscomp$863$$:$APP.$app$common$files$helpers$generate_unique_name$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($base_name$jscomp$5$$,
$unames$jscomp$16$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1613$immediate_suffix_QMARK_$$,!0]))}();$features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$=$APP.$clojure$set$difference$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$,$APP.$cljs$cst$227$features$$),$APP.$app$common$features$frontend_only_features$$);$features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$=
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($self__$jscomp$6649$$.params,$APP.$cljs$cst$723$name$$,$files$jscomp$18_name__$1$jscomp$15$$),$APP.$cljs$cst$227$features$$,$features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$);return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($map__71291__$1_on_error$jscomp$43$$,$APP.$beicon$v2$core$map$$(function($p1__71275_SHARP_$$){return $APP.$cljs$core$with_meta$$($APP.$app$main$data$dashboard$file_created$$($p1__71275_SHARP_$$),
$APP.$cljs$core$meta$$($it__$1$jscomp$126$$))},$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($it$jscomp$249_map__71291_on_success$jscomp$34$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4770$create_file$$,$features__$1$jscomp$23_params__$1$jscomp$47_state$jscomp$959$$))))});return new $app$main$data$dashboard$create_file_71279$$($p__71276$$,$map__71277__$1$$,$map__71277__$1$$,$project_id$jscomp$24$$,$name$jscomp$379$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$create_project$$=function(){typeof $app$main$data$dashboard$create_project_71126$$==="undefined"&&($app$main$data$dashboard$create_project_71126$$=function($meta71127$$){this.$meta71127$=$meta71127$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$create_project_71126$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$create_project_71126$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4748$app_DOT_main_DOT_data_DOT_dashboard_SLASH_create_project$$},$app$main$data$dashboard$create_project_71126$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71128$$,$meta71127__$1$$){return new $app$main$data$dashboard$create_project_71126$$($meta71127__$1$$)},$app$main$data$dashboard$create_project_71126$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71127$},$app$main$data$dashboard$create_project_71126$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$create_project_71126$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$,$params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$){$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$);
$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$=$APP.$app$main$data$helpers$lookup_team_projects$cljs$0core$0IFn$0_invoke$0arity$02$$($params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$,$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$);$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$=
$APP.$app$common$files$helpers$get_used_names$$($_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$);var $base_name$jscomp$4_map__71129__$1_on_error$jscomp$40$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.new-project-prefix");$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$=$APP.$app$common$files$helpers$generate_unique_name$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($base_name$jscomp$4_map__71129__$1_on_error$jscomp$40$$,
$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1613$immediate_suffix_QMARK_$$,!0]));$params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$);$params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$=new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$723$name$$,$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$,$APP.$cljs$cst$1912$team_id$$,$params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$],null);$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$=$APP.$cljs$core$meta$$($params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$);$base_name$jscomp$4_map__71129__$1_on_error$jscomp$40$$=
$APP.$cljs$core$__destructure_map$$($_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$);$_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($base_name$jscomp$4_map__71129__$1_on_error$jscomp$40$$,$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$identity$$);$base_name$jscomp$4_map__71129__$1_on_error$jscomp$40$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($base_name$jscomp$4_map__71129__$1_on_error$jscomp$40$$,
$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$$($base_name$jscomp$4_map__71129__$1_on_error$jscomp$40$$,$APP.$beicon$v2$core$map$$($APP.$app$main$data$dashboard$project_created$$,$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$($_$jscomp$2618_map__71129_name$jscomp$372_on_success$jscomp$31_projects$jscomp$3_team_id$jscomp$94_unames$jscomp$14$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4749$create_project$$,
$params$jscomp$324_state$jscomp$946_team_id__$1$jscomp$12$$))))});return new $app$main$data$dashboard$create_project_71126$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$fonts$process_upload$$=function($blobs_fonts$jscomp$18$$,$team_id$jscomp$70$$){$blobs_fonts$jscomp$18$$=$APP.$beicon$v2$core$mapcat$$(function($blob$jscomp$19$$){return $APP.$beicon$v2$core$mapcat$$(function($map__54958__$1_p__54957$$){$map__54958__$1_p__54957$$=$APP.$cljs$core$__destructure_map$$($map__54958__$1_p__54957$$);var $type$jscomp$448$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54958__$1_p__54957$$,$APP.$cljs$cst$139$type$$),$error$jscomp$54$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54958__$1_p__54957$$,
$APP.$cljs$cst$847$error$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($type$jscomp$448$$)?$type$jscomp$448$$:$error$jscomp$54$$)?(0,$APP.$beicon$v2$core$of$$)($map__54958__$1_p__54957$$):$APP.$beicon$v2$core$empty$$()},$APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){return(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$847$error$$,$blob$jscomp$19$$.name],null))},$APP.$beicon$v2$core$map$$(function($data$jscomp$294$$){var $JSCompiler_temp_const$jscomp$10623$$=
$APP.$cljs$cst$142$data$$,$JSCompiler_temp_const$jscomp$10622$$=$blob$jscomp$19$$.name,$JSCompiler_temp_const$jscomp$10621$$=$APP.$cljs$cst$139$type$$;a:{var $G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$=new Uint8Array($data$jscomp$294$$,0,4);b:{for(var $l__5614__auto__$jscomp$inline_13174$$=$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$.length,$i$jscomp$inline_13175$$=0,$G__55052$jscomp$inline_13178_ret$jscomp$inline_13176$$=
"";;)if($i$jscomp$inline_13175$$<$l__5614__auto__$jscomp$inline_13174$$){var $G__55051$jscomp$inline_13177$$=$i$jscomp$inline_13175$$+1;$G__55052$jscomp$inline_13178_ret$jscomp$inline_13176$$=[$G__55052$jscomp$inline_13178_ret$jscomp$inline_13176$$,$i$jscomp$inline_13175$$===0?"":" ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$[$i$jscomp$inline_13175$$].toString(8))].join("");$i$jscomp$inline_13175$$=
$G__55051$jscomp$inline_13177$$}else{$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$=$G__55052$jscomp$inline_13178_ret$jscomp$inline_13176$$;break b}$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$=void 0}switch($G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$){case "117 124 124 117":$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$=
"font/otf";break a;case "0 1 0 0":$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$="font/ttf";break a;case "167 117 106 106":$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$="font/woff";break a;default:throw Error(["No matching clause: ",$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$].join(""));}}return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$JSCompiler_temp_const$jscomp$10623$$,
$data$jscomp$294$$,$APP.$cljs$cst$723$name$$,$JSCompiler_temp_const$jscomp$10622$$,$JSCompiler_temp_const$jscomp$10621$$,$G__54948$jscomp$inline_13173_JSCompiler_inline_result$jscomp$10624_u8$jscomp$inline_13172$$],null)},$APP.$app$util$webapi$read_file_as_array_buffer$$($blob$jscomp$19$$))))},$APP.$beicon$v2$core$from$$($blobs_fonts$jscomp$18$$));var $errors$jscomp$14$$=$APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$120$$,$font$jscomp$30$$){return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$120$$,
["'",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$847$error$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$30$$)),"'"].join(""))},$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$beicon$v2$core$filter$$(function($p1__54910_SHARP_$$){return $APP.$cljs$cst$847$error$$.$cljs$core$IFn$_invoke$arity$1$($p1__54910_SHARP_$$)!=null},$blobs_fonts$jscomp$18$$));$APP.$beicon$v2$core$subscribe$cljs$0core$0IFn$0_invoke$0arity$02$$($errors$jscomp$14$$,function($p1__54911_SHARP_$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$not_empty$$($p1__54911_SHARP_$$))?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$error$$($APP.$cljs$core$count$$($p1__54911_SHARP_$$)>1?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("errors.bad-font-plural",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$p1__54911_SHARP_$$)])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("errors.bad-font",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$first$$($p1__54911_SHARP_$$)])))):
null});return $APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($res$jscomp$38$$,$existing$jscomp$1_p__54943_tmp_id$$){var $map__54944__$1$$=$APP.$cljs$core$__destructure_map$$($existing$jscomp$1_p__54943_tmp_id$$),$content$jscomp$157$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54944__$1$$,$APP.$cljs$cst$1621$content$$),$key_fn$jscomp$11$$=$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$03$$();$existing$jscomp$1_p__54943_tmp_id$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__54906_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key_fn$jscomp$11$$($map__54944__$1$$),
$key_fn$jscomp$11$$($p1__54906_SHARP_$$))},$APP.$cljs$core$vals$$($res$jscomp$38$$));if($APP.$cljs$core$truth_$$($existing$jscomp$1_p__54943_tmp_id$$))return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($res$jscomp$38$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($existing$jscomp$1_p__54943_tmp_id$$),function($existing__$1$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($existing__$1$$,$APP.$cljs$cst$142$data$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$157$$),$APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$157$$)),$APP.$cljs$cst$3374$names$$,$APP.$cljs$core$conj$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$157$$))});$existing$jscomp$1_p__54943_tmp_id$$=$APP.$app$common$uuid$next$$();return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($res$jscomp$38$$,$existing$jscomp$1_p__54943_tmp_id$$,
$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__54944__$1$$,$APP.$cljs$cst$266$id$$,$existing$jscomp$1_p__54943_tmp_id$$),$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$70$$),$APP.$cljs$cst$3374$names$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$157$$)])),
$APP.$cljs$cst$142$data$$,$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$157$$),$APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$157$$)])),$APP.$cljs$cst$1621$content$$))},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$beicon$v2$core$map$$(function($p__54941_type$jscomp$447$$){var $family$jscomp$6_map__54942__$1$$=$APP.$cljs$core$__destructure_map$$($p__54941_type$jscomp$447$$),$font$jscomp$27$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$6_map__54942__$1$$,$APP.$cljs$cst$2675$font$$);$p__54941_type$jscomp$447$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$6_map__54942__$1$$,$APP.$cljs$cst$139$type$$);var $name$jscomp$277$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$6_map__54942__$1$$,$APP.$cljs$cst$723$name$$),$data$jscomp$292_data__$1$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$6_map__54942__$1$$,
$APP.$cljs$cst$142$data$$);$family$jscomp$6_map__54942__$1$$=function(){var $or__5025__auto__$jscomp$627$$=$font$jscomp$27$$.getEnglishName("preferredFamily");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$627$$)?$or__5025__auto__$jscomp$627$$:$font$jscomp$27$$.getEnglishName("fontFamily")}();var $variant$jscomp$12$$=function(){var $or__5025__auto__$jscomp$628$$=$font$jscomp$27$$.getEnglishName("preferredSubfamily");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$628$$)?$or__5025__auto__$jscomp$628$$:
$font$jscomp$27$$.getEnglishName("fontSubfamily")}(),$height_warning_QMARK__hhea_ascender$$=$APP.$cljs$core$abs$$($font$jscomp$27$$.tables.hhea.ascender),$hhea_descender$$=$APP.$cljs$core$abs$$($font$jscomp$27$$.tables.hhea.descender),$win_descent$$=$APP.$cljs$core$abs$$($font$jscomp$27$$.tables.os2.usWinDescent),$os2_ascent$$=$APP.$cljs$core$abs$$($font$jscomp$27$$.tables.os2.sTypoAscender),$os2_descent$$=$APP.$cljs$core$abs$$($font$jscomp$27$$.tables.os2.sTypoDescender),$f_selection$$=($font$jscomp$27$$.tables.os2.fsSelection&
128)!=0;$height_warning_QMARK__hhea_ascender$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($height_warning_QMARK__hhea_ascender$$,$APP.$cljs$core$abs$$($font$jscomp$27$$.tables.os2.usWinAscent))||$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hhea_descender$$,$win_descent$$)||$f_selection$$&&($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($height_warning_QMARK__hhea_ascender$$,$os2_ascent$$)||$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hhea_descender$$,
$os2_descent$$));$data$jscomp$292_data__$1$jscomp$14$$=new Uint8Array($data$jscomp$292_data__$1$jscomp$14$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1621$content$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$142$data$$,$app$main$data$fonts$chunk_array$$($data$jscomp$292_data__$1$jscomp$14$$),$APP.$cljs$cst$723$name$$,$name$jscomp$277$$,$APP.$cljs$cst$139$type$$,$p__54941_type$jscomp$447$$],null),$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$core$truth_$$($family$jscomp$6_map__54942__$1$$)?
$family$jscomp$6_map__54942__$1$$:"",$APP.$cljs$cst$1745$font_weight$$,$app$common$media$parse_font_weight$$($variant$jscomp$12$$),$APP.$cljs$cst$1746$font_style$$,$APP.$cljs$core$truth_$$($APP.$cljs$core$re_seq$$(/(?:italic)/i,$variant$jscomp$12$$))?"italic":"normal",$APP.$cljs$cst$3373$height_warning_QMARK_$$,$height_warning_QMARK__hhea_ascender$$],null)},$APP.$beicon$v2$core$filter$$($APP.$cljs$core$some_QMARK_$$,$APP.$beicon$v2$core$map$$(function($data$jscomp$293_p__54949$$){var $map__54950__$1$$=
$APP.$cljs$core$__destructure_map$$($data$jscomp$293_p__54949$$);$data$jscomp$293_p__54949$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54950__$1$$,$APP.$cljs$cst$142$data$$);try{return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__54950__$1$$,$APP.$cljs$cst$2675$font$$,$APP.$shadow$js$shim$module$0opentype$$.parse($data$jscomp$293_p__54949$$))}catch($e54951$$){return $APP.$app$common$logging$enabled_QMARK_$$("app.main.data.fonts",$APP.$cljs$cst$1160$warn$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){var $JSCompiler_temp_const$jscomp$1931$$=
$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,$JSCompiler_temp_const$jscomp$1930$$=$APP.$cljs$core$PersistentVector$EMPTY_NODE$$;var $G__54953$jscomp$inline_9157_JSCompiler_inline_result$jscomp$1932$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($map__54950__$1$$);$G__54953$jscomp$inline_9157_JSCompiler_inline_result$jscomp$1932$$=$APP.$cuerdas$core$format$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cuerdas$core$format$$.$cljs$core$IFn$_invoke$arity$2$("skipping file %s, unsupported format",
$G__54953$jscomp$inline_9157_JSCompiler_inline_result$jscomp$1932$$):$APP.$cuerdas$core$format$$("skipping file %s, unsupported format",$G__54953$jscomp$inline_9157_JSCompiler_inline_result$jscomp$1932$$);return new $APP.$cljs$core$PersistentVector$$(null,1,5,$JSCompiler_temp_const$jscomp$1931$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$JSCompiler_temp_const$jscomp$1930$$,[$APP.$cljs$cst$1530$msg$$,$G__54953$jscomp$inline_9157_JSCompiler_inline_result$jscomp$1932$$],null)],null)}),null,"app.main.data.fonts",
$APP.$cljs$cst$1160$warn$$,!1),null}},$APP.$beicon$v2$core$filter$$(function($p1__54912_SHARP_$$){return $APP.$cljs$cst$847$error$$.$cljs$core$IFn$_invoke$arity$1$($p1__54912_SHARP_$$)==null},$blobs_fonts$jscomp$18$$)))))};
$app$main$data$team$update_team_photo$$=function($file$jscomp$42$$){typeof $app$main$data$team$update_team_photo_55075$$==="undefined"&&($app$main$data$team$update_team_photo_55075$$=function($file$jscomp$43$$,$meta55076$$){this.file=$file$jscomp$43$$;this.$meta55076$=$meta55076$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$team$update_team_photo_55075$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$team$update_team_photo_55075$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3261$app_DOT_main_DOT_data_DOT_team_SLASH_update_team_photo$$},$app$main$data$team$update_team_photo_55075$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_55077$$,$meta55076__$1$$){return new $app$main$data$team$update_team_photo_55075$$(this.file,$meta55076__$1$$)},$app$main$data$team$update_team_photo_55075$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta55076$},$app$main$data$team$update_team_photo_55075$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$team$update_team_photo_55075$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1705$$,$state$jscomp$214$$){var $team_id$jscomp$49$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$214$$);$APP.$app$main$data$media$notify_start_loading$$();return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__55072_SHARP_$$){$APP.$app$main$data$media$notify_finished_loading$$();
return $APP.$app$main$data$media$process_error$$($p1__55072_SHARP_$$)},$APP.$beicon$v2$core$mapcat$$(function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$team$fetch_teams$$(),$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,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"update-team-photo",$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$49$$],
null)))},$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__55074_SHARP_$$){return $APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2244$update_team_photo$$,$p1__55074_SHARP_$$)},$APP.$beicon$v2$core$map$$(function($p1__55073_SHARP_$$){return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$208$file$$,$APP.$cljs$cst$1912$team_id$$],[$p1__55073_SHARP_$$,
$team_id$jscomp$49$$])},$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$team$update_team_photo_55075$$($file$jscomp$42$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$dashboard$team$team_settings_page_STAR_$$=function($members$jscomp$6_props_71901$$){function $on_file_selected$$($file$jscomp$86$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$team$update_team_photo$$($file$jscomp$86$$))}var $team$jscomp$26$$=$members$jscomp$6_props_71901$$.team,$finput$$=(0,$APP.$rumext$v2$use_ref$$)();$members$jscomp$6_props_71901$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$26$$,$APP.$cljs$cst$3239$members$$);
var $stats$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$26$$,$APP.$cljs$cst$3255$stats$$),$owner$jscomp$6$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$cst$1582$is_owner$$,$members$jscomp$6_props_71901$$),$permissions$jscomp$24$$=$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$26$$),$can_edit$jscomp$2$$=function(){var $or__5025__auto__$jscomp$907$$=$APP.$cljs$cst$1582$is_owner$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$24$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$907$$)?$or__5025__auto__$jscomp$907$$:$APP.$cljs$cst$1581$is_admin$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$24$$)}(),$on_image_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$click$$($APP.$rumext$v2$ref_val$$($finput$$))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$26$$)],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.team-settings",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$26$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$26$$)])))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$team$fetch_members$cljs$0core$0IFn$0_invoke$0arity$01$$(null),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$team$fetch_stats$$()]))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$header$$,{section:$APP.$cljs$cst$4885$dashboard_team_settings$$,team:$team$jscomp$26$$}),(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_dashboard_team__dashboard-team-settings",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__settings-container",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__block main_ui_dashboard_team__info-block",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__team-icon",children:[$APP.$cljs$core$truth_$$($can_edit$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_image_click$$,className:"main_ui_dashboard_team__update-overlay",children:$APP.$app$main$ui$dashboard$team$image_icon$$}):null,(0,$APP.$rumext$v2$jsx$$)("img",{src:$APP.$app$config$resolve_team_photo_url$$($team$jscomp$26$$),
className:"main_ui_dashboard_team__team-image"}),$APP.$cljs$core$truth_$$($can_edit$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$file_uploader$file_uploader$$,{accept:"image/jpeg,image/png",multi:!1,ref:$finput$$,"on-selected":$on_file_selected$$}):null]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__block-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.team-info")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__block-text",
children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$26$$)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__block",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__block-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.team-members")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__block-content",children:[(0,$APP.$rumext$v2$jsx$$)("img",{src:$APP.$app$config$resolve_profile_photo_url$$($owner$jscomp$6$$),
className:"main_ui_dashboard_team__owner-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_team__block-text",children:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($owner$jscomp$6$$))," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.owner")),")"].join("")})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__block-content",
children:[$APP.$app$main$ui$dashboard$team$user_icon$$,(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_team__block-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.num-of-members",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$count$$($members$jscomp$6_props_71901$$)]))})]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__block",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__block-label",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.team-projects")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__block-content",children:[$APP.$app$main$ui$dashboard$team$group_icon$$,(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_team__block-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("labels.num-of-projects",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($APP.$cljs$cst$1913$projects$$.$cljs$core$IFn$_invoke$arity$1$($stats$jscomp$2$$)-
1)]))})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__block-content",children:[$APP.$app$main$ui$dashboard$team$document_icon$$,(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_team__block-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("labels.num-of-files",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($APP.$cljs$cst$1901$files$$.$cljs$core$IFn$_invoke$arity$1$($stats$jscomp$2$$))]))})]})]}),
$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1216$subscriptions$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$subscription$team_STAR_$$,{isOwner:$APP.$cljs$cst$1582$is_owner$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$24$$),team:$team$jscomp$26$$}):null]})})]})};
$app$main$data$dashboard$handle_change_team_role$$=function($params$jscomp$349$$){typeof $app$main$data$dashboard$handle_change_team_role_71391$$==="undefined"&&($app$main$data$dashboard$handle_change_team_role_71391$$=function($params$jscomp$350$$,$meta71392$$){this.params=$params$jscomp$350$$;this.$meta71392$=$meta71392$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$handle_change_team_role_71391$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$handle_change_team_role_71391$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4781$app_DOT_main_DOT_data_DOT_dashboard_SLASH_handle_change_team_role$$},$app$main$data$dashboard$handle_change_team_role_71391$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71393$$,$meta71392__$1$$){return new $app$main$data$dashboard$handle_change_team_role_71391$$(this.params,$meta71392__$1$$)},$app$main$data$dashboard$handle_change_team_role_71391$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71392$},$app$main$data$dashboard$handle_change_team_role_71391$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$handle_change_team_role_71391$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$common$change_team_role$$(this.params),$APP.$app$main$data$modal$hide$$())});return new $app$main$data$dashboard$handle_change_team_role_71391$$($params$jscomp$349$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$dashboard$process_message$$=function($map__71423__$1_p__71422$$){$map__71423__$1_p__71422$$=$APP.$cljs$core$__destructure_map$$($map__71423__$1_p__71422$$);var $G__71424$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71423__$1_p__71422$$,$APP.$cljs$cst$139$type$$);switch($G__71424$$ instanceof $APP.$cljs$core$Keyword$$?$G__71424$$.$fqn$:null){case "notification":return $APP.$app$main$data$common$handle_notification$$($map__71423__$1_p__71422$$);case "team-role-change":return $app$main$data$dashboard$handle_change_team_role$$($map__71423__$1_p__71422$$);
case "team-membership-change":return $APP.$app$main$data$common$team_membership_change$$($map__71423__$1_p__71422$$);case "team-org-change":return $app$main$data$dashboard$handle_change_team_org$$($map__71423__$1_p__71422$$);default:return null}};
$app$main$data$dashboard$initialize$$=function($team_id$jscomp$84$$){typeof $app$main$data$dashboard$initialize_70960$$==="undefined"&&($app$main$data$dashboard$initialize_70960$$=function($team_id$jscomp$85$$,$meta70961$$){this.$team_id$=$team_id$jscomp$85$$;this.$meta70961$=$meta70961$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$dashboard$initialize_70960$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$initialize_70960$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4716$app_DOT_main_DOT_data_DOT_dashboard_SLASH_initialize$$},$app$main$data$dashboard$initialize_70960$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70962$$,$meta70961__$1$$){return new $app$main$data$dashboard$initialize_70960$$(this.$team_id$,$meta70961__$1$$)},$app$main$data$dashboard$initialize_70960$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70961$},$app$main$data$dashboard$initialize_70960$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$initialize_70960$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2598_stopper$jscomp$37$$,$state$jscomp$929$$,$stream$jscomp$91$$){$_$jscomp$2598_stopper$jscomp$37$$=$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4717$app_DOT_main_DOT_data_DOT_dashboard_SLASH_finalize$$),$stream$jscomp$91$$);var $profile_id$jscomp$16$$=$APP.$cljs$cst$2271$profile_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$929$$);
return $APP.$beicon$v2$core$take_until$$($_$jscomp$2598_stopper$jscomp$37$$,$APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$dashboard$fetch_projects$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$data$dashboard$fetch_projects$$.$cljs$core$IFn$_invoke$arity$1$(this.$team_id$):$app$main$data$dashboard$fetch_projects$$(this.$team_id$),$APP.$app$main$data$fonts$fetch_fonts$$(this.$team_id$)),$APP.$beicon$v2$core$map$$($app$main$data$dashboard$process_message$$,$APP.$beicon$v2$core$filter$$(function($map__70966__$1_p__70965_topic$jscomp$1$$){$map__70966__$1_p__70965_topic$jscomp$1$$=
$APP.$cljs$core$__destructure_map$$($map__70966__$1_p__70965_topic$jscomp$1$$);$map__70966__$1_p__70965_topic$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70966__$1_p__70965_topic$jscomp$1$$,$APP.$cljs$cst$4207$topic$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__70966__$1_p__70965_topic$jscomp$1$$,$APP.$app$common$uuid$zero$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__70966__$1_p__70965_topic$jscomp$1$$,$profile_id$jscomp$16$$)},
$APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3889$app_DOT_main_DOT_data_DOT_websocket_SLASH_message$$),$stream$jscomp$91$$))))))});return new $app$main$data$dashboard$initialize_70960$$($team_id$jscomp$84$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$fonts$render_font_styles$$=function($font_refs$$){return $APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$106$$,$css$jscomp$4$$){return""+($acc$jscomp$106$$??"")+"\n"+($css$jscomp$4$$??"")},"",$APP.$beicon$v2$core$mapcat$$($APP.$app$main$fonts$fetch_font_css$$,$APP.$beicon$v2$core$from$$($font_refs$$)))};
$app$main$data$dashboard$search$$=function($params$jscomp$322_params__$1$jscomp$42$$){$params$jscomp$322_params__$1$jscomp$42$$=(0,$APP.$app$main$data$dashboard$check_search_params$$)($params$jscomp$322_params__$1$jscomp$42$$);typeof $app$main$data$dashboard$search_70982$$==="undefined"&&($app$main$data$dashboard$search_70982$$=function($params$jscomp$323$$,$meta70983$$){this.params=$params$jscomp$323$$;this.$meta70983$=$meta70983$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$dashboard$search_70982$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$search_70982$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4721$app_DOT_main_DOT_data_DOT_dashboard_SLASH_search$$},$app$main$data$dashboard$search_70982$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70984$$,$meta70983__$1$$){return new $app$main$data$dashboard$search_70982$$(this.params,$meta70983__$1$$)},$app$main$data$dashboard$search_70982$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70983$},$app$main$data$dashboard$search_70982$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$dashboard$search_70982$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2601$$,$state$jscomp$931$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$931$$,$APP.$cljs$cst$4722$search_result$$)},$app$main$data$dashboard$search_70982$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$dashboard$search_70982$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2602_params__$1$jscomp$43_team_id$jscomp$89$$,$state$jscomp$932$$){$_$jscomp$2602_params__$1$jscomp$43_team_id$jscomp$89$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$932$$);$_$jscomp$2602_params__$1$jscomp$43_team_id$jscomp$89$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$(this.params,$APP.$cljs$cst$1912$team_id$$,$_$jscomp$2602_params__$1$jscomp$43_team_id$jscomp$89$$);
return $APP.$beicon$v2$core$map$$(function($result$jscomp$311$$){return function($p1__70981_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__70981_SHARP_$$,$APP.$cljs$cst$4722$search_result$$,$result$jscomp$311$$)}},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4723$search_files$$,$_$jscomp$2602_params__$1$jscomp$43_team_id$jscomp$89$$))});return new $app$main$data$dashboard$search_70982$$($params$jscomp$322_params__$1$jscomp$42$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$dashboard$team$invitation_section_STAR_$$=function($on_delete$jscomp$4_props_71836$$){function $on_error$jscomp$59$$($form$jscomp$174$$){var $map__71855__$1$$=$APP.$cljs$core$__destructure_map$$($APP.$cljs$core$ex_data$$($form$jscomp$174$$)),$type$jscomp$565$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71855__$1$$,$APP.$cljs$cst$139$type$$),$code$jscomp$45$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71855__$1$$,$APP.$cljs$cst$271$code$$);$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$form$jscomp$174$$]));
return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2211$validation$$,$type$jscomp$565$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4889$profile_is_muted$$,$code$jscomp$45$$)?$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.profile-is-muted")),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide$$()])):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2211$validation$$,$type$jscomp$565$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4890$max_invitations_by_request$$,$code$jscomp$45$$)?$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$variadic$("errors.maximum-invitations-by-request-reached",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2458$threshold$$.$cljs$core$IFn$_invoke$arity$1$($map__71855__$1$$)])))):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2513$restriction$$,$type$jscomp$565$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3316$max_quote_reached$$,$code$jscomp$45$$)?$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$variadic$("errors.max-quote-reached",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2831$target$$.$cljs$core$IFn$_invoke$arity$1$($map__71855__$1$$)])))):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4891$member_is_muted$$,$code$jscomp$45$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4892$email_has_permanent_bounces$$,$code$jscomp$45$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4893$email_has_complaints$$,$code$jscomp$45$$)?$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$variadic$("errors.email-spam-or-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__71855__$1$$)])))):$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$$()]))}var $team$jscomp$21$$=$on_delete$jscomp$4_props_71836$$.team,$permissions$jscomp$19$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$21$$,$APP.$cljs$cst$1706$permissions$$),$invitations$jscomp$5$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$21$$,$APP.$cljs$cst$3243$invitations$$)),$team_id$jscomp$119$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$21$$,$APP.$cljs$cst$266$id$$),$owner_QMARK_$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($permissions$jscomp$19$$,
$APP.$cljs$cst$1582$is_owner$$),$admin_QMARK_$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($permissions$jscomp$19$$,$APP.$cljs$cst$1581$is_admin$$),$can_invite_QMARK_$$=$APP.$cljs$core$truth_$$($owner_QMARK_$jscomp$2$$)?$owner_QMARK_$jscomp$2$$:$admin_QMARK_$jscomp$1$$,$selected$jscomp$121$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$EMPTY$$),$sort_state$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$4902$field$$,null,$APP.$cljs$cst$1948$direction$$,$APP.$cljs$cst$4903$asc$$],null)),$selected_invitations$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$121$$),$APP.$rumext$v2$adapt$$($invitations$jscomp$5$$)],function(){return $APP.$cljs$core$filterv$$(function($p1__71832_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$_deref$$($selected$jscomp$121$$),$APP.$cljs$cst$3176$email$$.$cljs$core$IFn$_invoke$arity$1$($p1__71832_SHARP_$$))},
$APP.$cljs$core$_deref$$($invitations$jscomp$5$$))}),$on_select_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$121$$)],function($email$jscomp$15$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$_deref$$($selected$jscomp$121$$),$email$jscomp$15$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($selected$jscomp$121$$,$APP.$cljs$core$disj$$,$email$jscomp$15$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($selected$jscomp$121$$,
$APP.$cljs$core$conj$$,$email$jscomp$15$$)}),$on_confirm_delete$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$121$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$119$$)],function(){for(var $c__5548__auto___71918_seq__71838_71905$$=$APP.$cljs$core$seq$$($APP.$cljs$core$_deref$$($selected$jscomp$121$$)),$G__71920_chunk__71839_71906$$=null,$G__71921_count__71840_71907$$=0,$G__71919_i__71841_71908$$=0;;)if($G__71919_i__71841_71908$$<$G__71921_count__71840_71907$$){var $email_71909_seq__71838_71917__$1$$=
$G__71920_chunk__71839_71906$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__71919_i__71841_71908$$),$params_71910_temp__5825__auto___71916$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3176$email$$,$email_71909_seq__71838_71917__$1$$,$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$119$$],null);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$team$delete_invitation$$($APP.$cljs$core$with_meta$$($params_71910_temp__5825__auto___71916$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2445$on_success$$,function(){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($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.invitation-deleted")),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$team$fetch_invitations$$(),$APP.$app$main$data$modal$hide$$()]))}}($c__5548__auto___71918_seq__71838_71905$$,
$G__71920_chunk__71839_71906$$,$G__71921_count__71840_71907$$,$G__71919_i__71841_71908$$,$params_71910_temp__5825__auto___71916$$,$email_71909_seq__71838_71917__$1$$,$permissions$jscomp$19$$,$invitations$jscomp$5$$,$team_id$jscomp$119$$,$owner_QMARK_$jscomp$2$$,$admin_QMARK_$jscomp$1$$,$can_invite_QMARK_$$,$selected$jscomp$121$$,$sort_state$$,$selected_invitations$$,$on_select_change$jscomp$1$$,$team$jscomp$21$$)],null))));$G__71919_i__71841_71908$$+=1}else if($params_71910_temp__5825__auto___71916$$=
$APP.$cljs$core$seq$$($c__5548__auto___71918_seq__71838_71905$$)){$email_71909_seq__71838_71917__$1$$=$params_71910_temp__5825__auto___71916$$;if($APP.$cljs$core$chunked_seq_QMARK_$$($email_71909_seq__71838_71917__$1$$))$c__5548__auto___71918_seq__71838_71905$$=$APP.$cljs$core$_chunked_first$$($email_71909_seq__71838_71917__$1$$),$G__71919_i__71841_71908$$=$APP.$cljs$core$_chunked_rest$$($email_71909_seq__71838_71917__$1$$),$G__71920_chunk__71839_71906$$=$c__5548__auto___71918_seq__71838_71905$$,
$G__71921_count__71840_71907$$=$APP.$cljs$core$count$$($c__5548__auto___71918_seq__71838_71905$$),$c__5548__auto___71918_seq__71838_71905$$=$G__71919_i__71841_71908$$;else{var $email_71923$$=$APP.$cljs$core$first$$($email_71909_seq__71838_71917__$1$$),$params_71924$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3176$email$$,$email_71923$$,$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$119$$],null);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$team$delete_invitation$$($APP.$cljs$core$with_meta$$($params_71924$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2445$on_success$$,function(){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($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.invitation-deleted")),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$team$fetch_invitations$$(),$APP.$app$main$data$modal$hide$$()]))}}($c__5548__auto___71918_seq__71838_71905$$,
$G__71920_chunk__71839_71906$$,$G__71921_count__71840_71907$$,$G__71919_i__71841_71908$$,$params_71924$$,$email_71923$$,$email_71909_seq__71838_71917__$1$$,$params_71910_temp__5825__auto___71916$$,$permissions$jscomp$19$$,$invitations$jscomp$5$$,$team_id$jscomp$119$$,$owner_QMARK_$jscomp$2$$,$admin_QMARK_$jscomp$1$$,$can_invite_QMARK_$$,$selected$jscomp$121$$,$sort_state$$,$selected_invitations$$,$on_select_change$jscomp$1$$,$team$jscomp$21$$)],null))));$c__5548__auto___71918_seq__71838_71905$$=$APP.$cljs$core$next$$($email_71909_seq__71838_71917__$1$$);
$G__71920_chunk__71839_71906$$=null;$G__71921_count__71840_71907$$=0}$G__71919_i__71841_71908$$=0}else break;return $APP.$cljs$core$reset_BANG_$$($selected$jscomp$121$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$)});$on_delete$jscomp$4_props_71836$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_invitations$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$119$$)],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$$($APP.$cljs$cst$4901$invitation_modal$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1906$selected$$,$selected_invitations$$,$APP.$cljs$cst$4648$delete$$,!0,$APP.$cljs$cst$4900$on_confirm$$,$on_confirm_delete$$],null)))});var $on_resend_success$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($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.invitation-email-sent")),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide$$(),$APP.$app$main$data$team$fetch_invitations$$()]));return $APP.$cljs$core$reset_BANG_$$($selected$jscomp$121$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$)}),$on_confirm_resend$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_invitations$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$119$$),$APP.$rumext$v2$adapt$$($on_resend_success$$)],function(){$APP.$app$main$data$modal$hide_BANG_$$();
var $params$jscomp$364$$=$APP.$cljs$core$with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$3243$invitations$$,$selected_invitations$$,$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$119$$,$APP.$cljs$cst$3274$resend_QMARK_$$,!0],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2445$on_success$$,$on_resend_success$$,$APP.$cljs$cst$1281$on_error$$,$on_error$jscomp$59$$],null));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($APP.$app$main$data$team$create_invitations$$($params$jscomp$364$$),
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,$APP.$cljs$cst$2449$team$$],null)))}),$on_resend$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$119$$),$APP.$rumext$v2$adapt$$($selected_invitations$$)],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$$($APP.$cljs$cst$4901$invitation_modal$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1906$selected$$,$selected_invitations$$,$APP.$cljs$cst$4900$on_confirm$$,$on_confirm_resend$$],null)))}),$on_order_by_status$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($sort_state$$)],function(){var $current_field$$=$APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$current_direction$$=$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),
$new_direction$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_field$$,$APP.$cljs$cst$109$status$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_direction$$,$APP.$cljs$cst$4903$asc$$)?$APP.$cljs$cst$2656$desc$$:$APP.$cljs$cst$4903$asc$$:$APP.$cljs$cst$4903$asc$$;$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$_deref$$($invitations$jscomp$5$$)]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($sort_state$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4902$field$$,$APP.$cljs$cst$109$status$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1948$direction$$,$new_direction$$]));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($invitations$jscomp$5$$,function($p1__71834_SHARP__sorted$jscomp$1$$){$p1__71834_SHARP__sorted$jscomp$1$$=$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4899$expired$$,
$APP.$cljs$cst$3176$email$$),$p1__71834_SHARP__sorted$jscomp$1$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_direction$$,$APP.$cljs$cst$2656$desc$$)?$APP.$cljs$core$reverse$$($p1__71834_SHARP__sorted$jscomp$1$$):$p1__71834_SHARP__sorted$jscomp$1$$})}),$on_order_by_role$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($sort_state$$)],function(){var $current_field$jscomp$1$$=$APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),
$current_direction$jscomp$1$$=$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$new_direction$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_field$jscomp$1$$,$APP.$cljs$cst$2447$role$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_direction$jscomp$1$$,$APP.$cljs$cst$4903$asc$$)?$APP.$cljs$cst$2656$desc$$:$APP.$cljs$cst$4903$asc$$:$APP.$cljs$cst$4903$asc$$;$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($sort_state$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4902$field$$,$APP.$cljs$cst$2447$role$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1948$direction$$,$new_direction$jscomp$1$$]));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($invitations$jscomp$5$$,function($p1__71835_SHARP__sorted$jscomp$2$$){$p1__71835_SHARP__sorted$jscomp$2$$=$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2447$role$$,
$APP.$cljs$cst$3176$email$$),$p1__71835_SHARP__sorted$jscomp$2$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_direction$jscomp$1$$,$APP.$cljs$cst$2656$desc$$)?$APP.$cljs$core$reverse$$($p1__71835_SHARP__sorted$jscomp$2$$):$p1__71835_SHARP__sorted$jscomp$2$$})});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$21$$)],function(){$APP.$cljs$core$reset_BANG_$$($invitations$jscomp$5$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$21$$,
$APP.$cljs$cst$3243$invitations$$));return $APP.$cljs$core$reset_BANG_$$($sort_state$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$4902$field$$,null,$APP.$cljs$cst$1948$direction$$,$APP.$cljs$cst$4903$asc$$],null))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__invitations",children:[$APP.$cljs$core$count$$($APP.$cljs$core$_deref$$($selected$jscomp$121$$))>0?(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_dashboard_team__invitations-actions",children:[(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("team.invitations-selected",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($APP.$cljs$core$count$$($APP.$cljs$core$_deref$$($selected$jscomp$121$$)))]))}),(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",
type:"button",onClick:$on_resend$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.resend-invitation")})}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{onClick:$on_delete$jscomp$4_props_71836$$,variant:"destructive","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete-invitation"),icon:"delete"})]})}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__table-header",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_dashboard_team__title-field-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.invitations")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__title-field-role",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.role"),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"action",className:($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),
$APP.$cljs$cst$2447$role$$)?"main_ui_dashboard_team__sort-active":"")+" "+($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$APP.$cljs$cst$2447$role$$)?"main_ui_dashboard_team__sort-inactive":""),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.order-invitations-by-role"),icon:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),
$APP.$cljs$cst$2447$role$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$APP.$cljs$cst$4903$asc$$)?"arrow-down":"arrow-up":"arrow-down",onClick:$on_order_by_role$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_team__title-field-status",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.status"),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"action",className:($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$APP.$cljs$cst$109$status$$)?"main_ui_dashboard_team__sort-active":"")+" "+($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$APP.$cljs$cst$109$status$$)?"main_ui_dashboard_team__sort-inactive":""),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.order-invitations-by-status"),
icon:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4902$field$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$APP.$cljs$cst$109$status$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($sort_state$$)),$APP.$cljs$cst$4903$asc$$)?"arrow-down":"arrow-up":"arrow-down",onClick:$on_order_by_status$$})]})]}),$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$core$_deref$$($invitations$jscomp$5$$))?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$empty_invitation_table_STAR_$$,{canInvite:$can_invite_QMARK_$$,team:$team$jscomp$21$$}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_team__table-rows",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$50$$,$invitation$jscomp$2$$){$out_arr__44057__auto__$jscomp$50$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$invitation_row_STAR_$$,{invitation:$invitation$jscomp$2$$,
canInvite:$can_invite_QMARK_$$,teamId:$team_id$jscomp$119$$,selected:$selected$jscomp$121$$,onSelectChange:$on_select_change$jscomp$1$$},$APP.$cljs$cst$3176$email$$.$cljs$core$IFn$_invoke$arity$1$($invitation$jscomp$2$$)));return $out_arr__44057__auto__$jscomp$50$$},[],$APP.$cljs$core$_deref$$($invitations$jscomp$5$$))})]})};
$app$main$ui$dashboard$team$team_invitations_page_STAR_$$=function($props_71879$$){var $profile$jscomp$38$$=$props_71879$$.profile,$team$jscomp$24$$=$props_71879$$.team;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$24$$)],function(){return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.team-invitations",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$24$$))?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$24$$)])))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$team$fetch_invitations$$())});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$team$header$$,
{section:$APP.$cljs$cst$4886$dashboard_team_invitations$$,team:$team$jscomp$24$$}),(0,$APP.$rumext$v2$jsxs$$)("section",{className:"main_ui_dashboard_team__dashboard-team-invitations",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$invitation_section_STAR_$$,{team:$team$jscomp$24$$}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$618$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1216$subscriptions$$);return $and__5023__auto__$jscomp$618$$?
$app$main$ui$dashboard$subscription$show_subscription_members_banner_QMARK_$$($team$jscomp$24$$,$profile$jscomp$38$$):$and__5023__auto__$jscomp$618$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$subscription$members_cta_STAR_$$,{team:$team$jscomp$24$$}):null]})]})};
$app$main$ui$components$progress$progress_notification_widget_STAR_$$=function(){var $state$jscomp$1120_total$jscomp$24$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$progress$$),$error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$);$error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$,$APP.$cljs$cst$3177$theme$$,"dark");var $background_clr$jscomp$1_default_theme_QMARK_$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("dark",$error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$);$error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$=$APP.$cljs$cst$847$error$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1120_total$jscomp$24$$);var $color$jscomp$234_healthy_QMARK_$jscomp$3$$=$APP.$cljs$cst$2459$healthy$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1120_total$jscomp$24$$),$visible_QMARK_$jscomp$5$$=$APP.$cljs$cst$2303$visible$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1120_total$jscomp$24$$),
$progress$jscomp$2$$=$APP.$cljs$cst$2204$progress$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1120_total$jscomp$24$$),$hint$jscomp$28$$=$APP.$cljs$cst$273$hint$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1120_total$jscomp$24$$);$state$jscomp$1120_total$jscomp$24$$=$APP.$cljs$cst$2286$total$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1120_total$jscomp$24$$);var $pwidth$jscomp$1$$=$APP.$cljs$core$truth_$$($error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$)?280:$progress$jscomp$2$$*
280/$state$jscomp$1120_total$jscomp$24$$;$color$jscomp$234_healthy_QMARK_$jscomp$3$$=$APP.$cljs$core$truth_$$($error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$)?"#ff3277":$APP.$cljs$core$truth_$$($color$jscomp$234_healthy_QMARK_$jscomp$3$$)?$background_clr$jscomp$1_default_theme_QMARK_$$?"#7efff5":"#6911d4":$APP.$cljs$core$not$$($color$jscomp$234_healthy_QMARK_$jscomp$3$$)?"#fe4811":null;$background_clr$jscomp$1_default_theme_QMARK_$$=$background_clr$jscomp$1_default_theme_QMARK_$$?"#2e3434":
"#eef0f2";var $toggle_detail_visibility$jscomp$1$$=$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$main$data$common$toggle_progress_visibility$$())});return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$APP.$cljs$core$truth_$$($visible_QMARK_$jscomp$5$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_components_progress__progress-modal "+($APP.$cljs$core$truth_$$($error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$)?
"main_ui_components_progress__has-error":""),children:[$APP.$cljs$core$truth_$$($error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$)?$app$main$ui$components$progress$error_icon$$:$app$main$ui$components$progress$neutral_icon$$,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_components_progress__title",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_components_progress__title-text",children:$hint$jscomp$28$$}),$APP.$cljs$core$truth_$$($error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$)?
(0,$APP.$rumext$v2$jsx$$)("button",{className:"main_ui_components_progress__retry-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.retry")}):(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_components_progress__progress",children:""+($progress$jscomp$2$$??"")+" / "+($state$jscomp$1120_total$jscomp$24$$??"")})]}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$toggle_detail_visibility$jscomp$1$$,className:"main_ui_components_progress__progress-close-button",children:$app$main$ui$components$progress$close_icon$$}),
$APP.$cljs$core$truth_$$($error_QMARK_$jscomp$3_profile$jscomp$68_theme$jscomp$30$$)?null:(0,$APP.$rumext$v2$jsx$$)("svg",{height:4,width:280,className:"main_ui_components_progress__progress-bar",children:(0,$APP.$rumext$v2$jsxs$$)("g",{children:[(0,$APP.$rumext$v2$jsx$$)("path",{d:"M0 0 L280 0",stroke:$background_clr$jscomp$1_default_theme_QMARK_$$,strokeWidth:30}),(0,$APP.$rumext$v2$jsx$$)("path",{d:"M0 0 L280 0",stroke:$color$jscomp$234_healthy_QMARK_$jscomp$3$$,strokeWidth:30,fill:"transparent",
strokeDasharray:280,strokeDashoffset:280-$pwidth$jscomp$1$$,style:{transition:"stroke-dashoffset 1s ease-in-out"}})]})})]}):null})};
$app$main$ui$components$portal$portal_on_document_STAR_$$=function($children$jscomp$318_props_79946$$){$children$jscomp$318_props_79946$$=$children$jscomp$318_props_79946$$.children;var $container$jscomp$94$$=$APP.$app$main$ui$hooks$use_portal_container$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$205$default$$);return(0,$APP.$rumext$v2$portal$$)((0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$children$jscomp$318_props_79946$$}),$container$jscomp$94$$)};
$app$main$ui$dashboard$file_menu$get_project_name$$=function($project$jscomp$23$$){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$23$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.drafts"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$23$$)};$app$main$ui$dashboard$file_menu$get_project_id$$=function($project$jscomp$24$$){return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$24$$))};
$app$main$ui$dashboard$file_menu$get_team_name$$=function($team$jscomp$48$$){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$48$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$48$$)};
$app$main$ui$dashboard$file_menu$group_by_team$$=function($projects$jscomp$7$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($teams$jscomp$11$$,$project$jscomp$25$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($teams$jscomp$11$$,$APP.$cljs$cst$1912$team_id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$25$$),function($p1__79949_SHARP_$$){return $p1__79949_SHARP_$$==null?new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$1912$team_id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$25$$),
$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$2450$team_name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$25$$),$APP.$cljs$cst$4713$is_default$$,$cljs$cst$6043$is_default_team$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$25$$),$APP.$cljs$cst$1913$projects$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$project$jscomp$25$$],null)],null):$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($p1__79949_SHARP_$$,$APP.$cljs$cst$1913$projects$$,
$APP.$cljs$core$conj$$,$project$jscomp$25$$)})},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$projects$jscomp$7$$)};
$app$main$ui$dashboard$file_menu$file_menu_STAR_$$=function($options$jscomp$627_props_79958_sub_options$jscomp$2$$){function $on_delete_immediately$$(){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$("dashboard.delete-forever-confirmation.title"),
$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.delete-file-forever-confirmation.description",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$)])),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.delete-forever-confirmation.title"),$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$delete_files_immediately$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1912$team_id$$,$current_team_id$jscomp$1$$,$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$app$common$data$xf_COLON_map_id$$,$files$jscomp$33$$)],null)))}],null)))}function $on_restore_immediately$$(){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,6,[$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$("dashboard-restore-file-confirmation.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard-restore-file-confirmation.description",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$)])),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.continue"),
$APP.$cljs$cst$2434$accept_style$$,$APP.$cljs$cst$2435$primary$$,$APP.$cljs$cst$2436$on_accept$$,$restore_fn$$],null)))}function $restore_fn$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$restore_files_immediately$$($APP.$cljs$core$with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1912$team_id$$,$current_team_id$jscomp$1$$,$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$app$common$data$xf_COLON_map_id$$,$files$jscomp$33$$)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2445$on_success$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.restore-success-notification",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$)]))),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$fetch_projects$$($current_team_id$jscomp$1$$),$app$main$data$dashboard$fetch_deleted_files$cljs$0core$0IFn$0_invoke$0arity$01$$($current_team_id$jscomp$1$$)]))},$APP.$cljs$cst$1281$on_error$$,function(){return $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$variadic$("dashboard.errors.error-on-restore-file",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$)]))))}],null))))}function $on_export_binary_files$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($APP.$app$main$data$exports$files$open_export_dialog$$($files$jscomp$33$$),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard"],null)))}
function $on_del_shared$$($event$jscomp$664$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$664$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$664$$);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$5360$delete_shared_libraries$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$5361$unpublish$$,$APP.$cljs$cst$1707$ids$$,
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$),$files$jscomp$33$$),$APP.$cljs$cst$2436$on_accept$$,$del_shared$$,$APP.$cljs$cst$5362$count_libraries$$,$file_count$$],null)))}function $on_add_shared$jscomp$1$$($event$jscomp$663$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$663$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$show_shared_dialog$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$),
$add_shared$jscomp$2$$))}function $del_shared$$(){return $APP.$cljs$core$run_BANG_$$(function($p1__79954_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$set_file_shared$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__79954_SHARP_$$,$APP.$cljs$cst$2142$is_shared$$,!1)))},$files$jscomp$33$$)}function $add_shared$jscomp$2$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$set_file_shared$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($file$jscomp$185$$,
$APP.$cljs$cst$2142$is_shared$$,!0)))}function $on_move$jscomp$1$$($team_id$jscomp$142$$,$project_id$jscomp$40$$){var $params$jscomp$430$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$),$files$jscomp$33$$),$APP.$cljs$cst$2141$project_id$$,$project_id$jscomp$40$$],null);return function(){var $num_shared$jscomp$1$$=
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__79953_SHARP_$$){return $APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($p1__79953_SHARP_$$)},$files$jscomp$33$$);return 0<$APP.$cljs$core$count$$($num_shared$jscomp$1$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($team_id$jscomp$142$$,$current_team_id$jscomp$1$$)?$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$5360$delete_shared_libraries$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$1782$move$$,$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$),$files$jscomp$33$$),$APP.$cljs$cst$2436$on_accept$$,function(){return $on_move_accept$$($params$jscomp$430$$,$team_id$jscomp$142$$,$project_id$jscomp$40$$)},$APP.$cljs$cst$5362$count_libraries$$,
$APP.$cljs$core$count$$($num_shared$jscomp$1$$)],null))):$on_move_accept$$($params$jscomp$430$$,$team_id$jscomp$142$$,$project_id$jscomp$40$$)}}function $on_move_accept$$($params$jscomp$429$$,$team_id$jscomp$141$$,$project_id$jscomp$39$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$dashboard$move_files$$($APP.$cljs$core$with_meta$$($params$jscomp$429$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2445$on_success$$,function(){return $on_move_success$jscomp$1$$($team_id$jscomp$141$$,
$project_id$jscomp$39$$)}],null))))}function $on_move_success$jscomp$1$$($team_id$jscomp$140$$,$project_id$jscomp$38$$){$multi_QMARK_$jscomp$2$$?$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$("dashboard.success-move-files"))):$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$("dashboard.success-move-file")));
return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($navigate$jscomp$1$$)?$navigate$jscomp$1$$:$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($team_id$jscomp$140$$,$current_team_id$jscomp$1$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_dashboard_files$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,2,[$APP.$cljs$cst$2141$project_id$$,
$project_id$jscomp$38$$,$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$140$$],null)]))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$140$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))}function $on_delete$jscomp$14$$($event$jscomp$662_num_shared$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$662_num_shared$$);
$event$jscomp$662_num_shared$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__79952_SHARP_$$){return $APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($p1__79952_SHARP_$$)},$files$jscomp$33$$);return 0<$APP.$cljs$core$count$$($event$jscomp$662_num_shared$$)?$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$5360$delete_shared_libraries$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$4648$delete$$,$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$),$files$jscomp$33$$),$APP.$cljs$cst$2436$on_accept$$,$on_delete_accept$jscomp$1$$,$APP.$cljs$cst$5362$count_libraries$$,$APP.$cljs$core$count$$($event$jscomp$662_num_shared$$)],null))):$multi_QMARK_$jscomp$2$$?
$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$variadic$("modals.delete-file-multi-confirm.title",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("modals.delete-file-multi-confirm.message",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("modals.delete-file-multi-confirm.accept",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),$APP.$cljs$cst$2436$on_accept$$,$on_delete_accept$jscomp$1$$],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,
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-file-confirm.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-file-confirm.message"),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-file-confirm.accept"),$APP.$cljs$cst$2436$on_accept$$,$on_delete_accept$jscomp$1$$],null)))}
function $on_delete_accept$jscomp$1$$(){$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$dashboard$delete_file$$,$files$jscomp$33$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$notifications$success$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.success-delete-file",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($file_count$$)]))),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))}function $on_duplicate$jscomp$3$$(){$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$dashboard$duplicate_file$$,$files$jscomp$33$$));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$variadic$("dashboard.success-duplicate-file",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($file_count$$)]))))}function $on_new_tab$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_workspace$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,2,[$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$),
$APP.$cljs$cst$2413$app_DOT_main_DOT_router_SLASH_new_window$$,!0],null)])))}var $left$jscomp$35$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.left,$navigate$jscomp$1$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.navigate,$on_close$jscomp$38$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.onClose,$top$jscomp$21$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.top,$can_edit$jscomp$5$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.canEdit,$on_edit$jscomp$10$$=
$options$jscomp$627_props_79958_sub_options$jscomp$2$$.onEdit,$parent_id$jscomp$115$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.parentId,$files$jscomp$33$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.files,$can_restore$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.canRestore,$origin$jscomp$69$$=$options$jscomp$627_props_79958_sub_options$jscomp$2$$.origin,$is_lib_page_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4984$libraries$$,
$origin$jscomp$69$$),$is_search_page_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$6044$search$$,$origin$jscomp$69$$),$top__$1$jscomp$3$$=$APP.$cljs$core$truth_$$($top$jscomp$21$$)?$top$jscomp$21$$:0,$left__$1$jscomp$4$$=$APP.$cljs$core$truth_$$($left$jscomp$35$$)?$left$jscomp$35$$:0,$file$jscomp$185$$=$APP.$cljs$core$first$$($files$jscomp$33$$),$file_count$$=$APP.$cljs$core$count$$($files$jscomp$33$$),$multi_QMARK_$jscomp$2$$=$file_count$$>1,$current_team_id$jscomp$1$$=
(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_team_id$$),$teams_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$teams$jscomp$12$$=$APP.$cljs$core$_deref$$($teams_STAR_$$),$current_team$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($teams$jscomp$12$$,$current_team_id$jscomp$1$$),$other_teams$$=$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__79950_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__79950_SHARP_$$),
$current_team_id$jscomp$1$$)},$APP.$cljs$core$vals$$($teams$jscomp$12$$)),$file_project_ids$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2141$project_id$$),$files$jscomp$33$$),$current_projects$$=$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__79951_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($file_project_ids$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__79951_SHARP_$$))},
$APP.$cljs$cst$1913$projects$$.$cljs$core$IFn$_invoke$arity$1$($current_team$$));$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__79956_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($teams_STAR_$$,$p1__79956_SHARP_$$)},$APP.$beicon$v2$core$map$$($app$main$ui$dashboard$file_menu$group_by_team$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$6045$get_all_projects$$)))});
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_close$jscomp$38$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4848$dropdown_SLASH_open$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,"file-menu"],null)));var $stream$jscomp$100$$=$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$filter$$(function($p1__79957_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("file-menu",
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__79957_SHARP_$$))},$APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4848$dropdown_SLASH_open$$),$APP.$app$main$store$stream$$)))),$subs$jscomp$28$$=$APP.$beicon$v2$core$subscribe$cljs$0core$0IFn$0_invoke$0arity$04$$($stream$jscomp$100$$,null,null,$on_close$jscomp$38$$);return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$28$$)}});
$options$jscomp$627_props_79958_sub_options$jscomp$2$$=$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(function(){return function $app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79977$$($s__79978$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__79978__$2_temp__5825__auto__$jscomp$420$$=$APP.$cljs$core$seq$$($s__79978$$);if($s__79978__$2_temp__5825__auto__$jscomp$420$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__79978__$2_temp__5825__auto__$jscomp$420$$)){var $JSCompiler_inline_result$jscomp$1933_c__5501__auto__$jscomp$60$$=
$APP.$cljs$core$_chunked_first$$($s__79978__$2_temp__5825__auto__$jscomp$420$$),$size__5502__auto__$jscomp$60$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1933_c__5501__auto__$jscomp$60$$),$b__79980_project$jscomp$26$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$60$$);a:{for(var $i__79979$jscomp$inline_9159$$=0;;)if($i__79979$jscomp$inline_9159$$<$size__5502__auto__$jscomp$60$$){var $project$jscomp$inline_9160_x$jscomp$inline_13182$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1933_c__5501__auto__$jscomp$60$$,
$i__79979$jscomp$inline_9159$$),$b$jscomp$inline_13181$$=$b__79980_project$jscomp$26$$;$project$jscomp$inline_9160_x$jscomp$inline_13182$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_project_name$$($project$jscomp$inline_9160_x$jscomp$inline_13182$$),$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($project$jscomp$inline_9160_x$jscomp$inline_13182$$),$APP.$cljs$cst$2359$handler$$,$on_move$jscomp$1$$($current_team_id$jscomp$1$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$inline_9160_x$jscomp$inline_13182$$))],null);$b$jscomp$inline_13181$$.add($project$jscomp$inline_9160_x$jscomp$inline_13182$$);$i__79979$jscomp$inline_9159$$+=1}else{$JSCompiler_inline_result$jscomp$1933_c__5501__auto__$jscomp$60$$=!0;break a}$JSCompiler_inline_result$jscomp$1933_c__5501__auto__$jscomp$60$$=void 0}return $JSCompiler_inline_result$jscomp$1933_c__5501__auto__$jscomp$60$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__79980_project$jscomp$26$$),
$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79977$$($APP.$cljs$core$_chunked_rest$$($s__79978__$2_temp__5825__auto__$jscomp$420$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__79980_project$jscomp$26$$),null)}$b__79980_project$jscomp$26$$=$APP.$cljs$core$first$$($s__79978__$2_temp__5825__auto__$jscomp$420$$);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_project_name$$($b__79980_project$jscomp$26$$),
$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($b__79980_project$jscomp$26$$),$APP.$cljs$cst$2359$handler$$,$on_move$jscomp$1$$($current_team_id$jscomp$1$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($b__79980_project$jscomp$26$$))],null),$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79977$$($APP.$cljs$core$rest$$($s__79978__$2_temp__5825__auto__$jscomp$420$$)))}return null}},null,null)}($current_projects$$)}(),$APP.$cljs$core$seq$$($other_teams$$)?
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$("dashboard.move-to-other-team"),$APP.$cljs$cst$266$id$$,"move-to-other-team",$APP.$cljs$cst$871$options$$,function(){return function $app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989$$($s__79990$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $temp__5825__auto__$jscomp$421$$=
$APP.$cljs$core$seq$$($s__79990$$);if($temp__5825__auto__$jscomp$421$$){var $s__79990__$2$$=$temp__5825__auto__$jscomp$421$$;if($APP.$cljs$core$chunked_seq_QMARK_$$($s__79990__$2$$)){var $c__5501__auto__$jscomp$61$$=$APP.$cljs$core$_chunked_first$$($s__79990__$2$$),$size__5502__auto__$jscomp$61$$=$APP.$cljs$core$count$$($c__5501__auto__$jscomp$61$$),$b__79992$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$61$$);return function(){for(var $i__79991$$=0;;)if($i__79991$$<$size__5502__auto__$jscomp$61$$){var $team$jscomp$50$$=
$APP.$cljs$core$_nth$$($c__5501__auto__$jscomp$61$$,$i__79991$$);$APP.$cljs$core$chunk_append$$($b__79992$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_team_name$$($team$jscomp$50$$),$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($team$jscomp$50$$),$APP.$cljs$cst$871$options$$,function(){return function($i__79991$jscomp$1$$,$team$jscomp$51$$,$c__5501__auto__$jscomp$62$$,$size__5502__auto__$jscomp$62$$,$b__79992$jscomp$1$$,
$s__79990__$2$jscomp$1$$,$temp__5825__auto__$jscomp$422$$,$is_lib_page_QMARK_$jscomp$1$$,$is_search_page_QMARK_$jscomp$1$$,$top__$1$jscomp$4$$,$left__$1$jscomp$5$$,$file$jscomp$186$$,$file_count$jscomp$1$$,$multi_QMARK_$jscomp$3$$,$current_team_id$jscomp$2$$,$teams_STAR_$jscomp$1$$,$teams$jscomp$13$$,$current_team$jscomp$1$$,$other_teams$jscomp$1$$,$file_project_ids$jscomp$1$$,$current_projects$jscomp$1$$,$on_new_tab$jscomp$1$$,$on_duplicate$jscomp$4$$,$on_delete_accept$jscomp$2$$,$on_delete$jscomp$15$$,
$on_move_success$jscomp$2$$,$on_move_accept$jscomp$1$$,$on_move$jscomp$2$$,$add_shared$jscomp$3$$,$del_shared$jscomp$1$$,$on_add_shared$jscomp$2$$,$on_del_shared$jscomp$1$$,$on_export_binary_files$jscomp$1$$,$restore_fn$jscomp$1$$,$on_restore_immediately$jscomp$1$$,$on_delete_immediately$jscomp$1$$,$left$jscomp$36$$,$navigate$jscomp$2$$,$on_close$jscomp$39$$,$top$jscomp$22$$,$can_edit$jscomp$6$$,$on_edit$jscomp$11$$,$parent_id$jscomp$116$$,$files$jscomp$34$$,$can_restore$jscomp$1$$,$origin$jscomp$70$$){return function $app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989_$_iter__79993$$($s__79994$$){return new $APP.$cljs$core$LazySeq$$(null,
function($i__79991$jscomp$2$$,$team$jscomp$52$$,$c__5501__auto__$jscomp$63$$,$size__5502__auto__$jscomp$63$$,$b__79992$jscomp$2$$,$s__79990__$2$jscomp$2$$,$temp__5825__auto__$jscomp$423$$,$is_lib_page_QMARK_$jscomp$2$$,$is_search_page_QMARK_$jscomp$2$$,$top__$1$jscomp$5$$,$left__$1$jscomp$6$$,$file$jscomp$187$$,$file_count$jscomp$2$$,$multi_QMARK_$jscomp$4$$,$current_team_id$jscomp$3$$,$teams_STAR_$jscomp$2$$,$teams$jscomp$14$$,$current_team$jscomp$2$$,$other_teams$jscomp$2$$,$file_project_ids$jscomp$2$$,
$current_projects$jscomp$2$$,$on_new_tab$jscomp$2$$,$on_duplicate$jscomp$5$$,$on_delete_accept$jscomp$3$$,$on_delete$jscomp$16$$,$on_move_success$jscomp$3$$,$on_move_accept$jscomp$2$$,$on_move$jscomp$3$$){return function(){for(;;){var $s__79994__$2_temp__5825__auto____$1$jscomp$31$$=$APP.$cljs$core$seq$$($s__79994$$);if($s__79994__$2_temp__5825__auto____$1$jscomp$31$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__79994__$2_temp__5825__auto____$1$jscomp$31$$)){var $JSCompiler_inline_result$jscomp$1934_c__5501__auto____$1$jscomp$1$$=
$APP.$cljs$core$_chunked_first$$($s__79994__$2_temp__5825__auto____$1$jscomp$31$$),$size__5502__auto____$1$jscomp$1$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1934_c__5501__auto____$1$jscomp$1$$),$b__79996_sub_project$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto____$1$jscomp$1$$);a:{for(var $i__79995$jscomp$inline_9162$$=0;;)if($i__79995$jscomp$inline_9162$$<$size__5502__auto____$1$jscomp$1$$){var $sub_project$jscomp$inline_9163_x$jscomp$inline_13185$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1934_c__5501__auto____$1$jscomp$1$$,
$i__79995$jscomp$inline_9162$$),$b$jscomp$inline_13184$$=$b__79996_sub_project$$;$sub_project$jscomp$inline_9163_x$jscomp$inline_13185$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_project_name$$($sub_project$jscomp$inline_9163_x$jscomp$inline_13185$$),$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($sub_project$jscomp$inline_9163_x$jscomp$inline_13185$$),$APP.$cljs$cst$2359$handler$$,$on_move$jscomp$3$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$52$$),
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($sub_project$jscomp$inline_9163_x$jscomp$inline_13185$$))],null);$b$jscomp$inline_13184$$.add($sub_project$jscomp$inline_9163_x$jscomp$inline_13185$$);$i__79995$jscomp$inline_9162$$+=1}else{$JSCompiler_inline_result$jscomp$1934_c__5501__auto____$1$jscomp$1$$=!0;break a}$JSCompiler_inline_result$jscomp$1934_c__5501__auto____$1$jscomp$1$$=void 0}return $JSCompiler_inline_result$jscomp$1934_c__5501__auto____$1$jscomp$1$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__79996_sub_project$$),
$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989_$_iter__79993$$($APP.$cljs$core$_chunked_rest$$($s__79994__$2_temp__5825__auto____$1$jscomp$31$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__79996_sub_project$$),null)}$b__79996_sub_project$$=$APP.$cljs$core$first$$($s__79994__$2_temp__5825__auto____$1$jscomp$31$$);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_project_name$$($b__79996_sub_project$$),
$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($b__79996_sub_project$$),$APP.$cljs$cst$2359$handler$$,$on_move$jscomp$3$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$52$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($b__79996_sub_project$$))],null),$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989_$_iter__79993$$($APP.$cljs$core$rest$$($s__79994__$2_temp__5825__auto____$1$jscomp$31$$)))}return null}}}($i__79991$jscomp$1$$,
$team$jscomp$51$$,$c__5501__auto__$jscomp$62$$,$size__5502__auto__$jscomp$62$$,$b__79992$jscomp$1$$,$s__79990__$2$jscomp$1$$,$temp__5825__auto__$jscomp$422$$,$is_lib_page_QMARK_$jscomp$1$$,$is_search_page_QMARK_$jscomp$1$$,$top__$1$jscomp$4$$,$left__$1$jscomp$5$$,$file$jscomp$186$$,$file_count$jscomp$1$$,$multi_QMARK_$jscomp$3$$,$current_team_id$jscomp$2$$,$teams_STAR_$jscomp$1$$,$teams$jscomp$13$$,$current_team$jscomp$1$$,$other_teams$jscomp$1$$,$file_project_ids$jscomp$1$$,$current_projects$jscomp$1$$,
$on_new_tab$jscomp$1$$,$on_duplicate$jscomp$4$$,$on_delete_accept$jscomp$2$$,$on_delete$jscomp$15$$,$on_move_success$jscomp$2$$,$on_move_accept$jscomp$1$$,$on_move$jscomp$2$$,$add_shared$jscomp$3$$,$del_shared$jscomp$1$$,$on_add_shared$jscomp$2$$,$on_del_shared$jscomp$1$$,$on_export_binary_files$jscomp$1$$,$restore_fn$jscomp$1$$,$on_restore_immediately$jscomp$1$$,$on_delete_immediately$jscomp$1$$,$left$jscomp$36$$,$navigate$jscomp$2$$,$on_close$jscomp$39$$,$top$jscomp$22$$,$can_edit$jscomp$6$$,$on_edit$jscomp$11$$,
$parent_id$jscomp$116$$,$files$jscomp$34$$,$can_restore$jscomp$1$$,$origin$jscomp$70$$),null,null)}}($i__79991$$,$team$jscomp$50$$,$c__5501__auto__$jscomp$61$$,$size__5502__auto__$jscomp$61$$,$b__79992$$,$s__79990__$2$$,$temp__5825__auto__$jscomp$421$$,$is_lib_page_QMARK_$$,$is_search_page_QMARK_$$,$top__$1$jscomp$3$$,$left__$1$jscomp$4$$,$file$jscomp$185$$,$file_count$$,$multi_QMARK_$jscomp$2$$,$current_team_id$jscomp$1$$,$teams_STAR_$$,$teams$jscomp$12$$,$current_team$$,$other_teams$$,$file_project_ids$$,
$current_projects$$,$on_new_tab$$,$on_duplicate$jscomp$3$$,$on_delete_accept$jscomp$1$$,$on_delete$jscomp$14$$,$on_move_success$jscomp$1$$,$on_move_accept$$,$on_move$jscomp$1$$,$add_shared$jscomp$2$$,$del_shared$$,$on_add_shared$jscomp$1$$,$on_del_shared$$,$on_export_binary_files$$,$restore_fn$$,$on_restore_immediately$$,$on_delete_immediately$$,$left$jscomp$35$$,$navigate$jscomp$1$$,$on_close$jscomp$38$$,$top$jscomp$21$$,$can_edit$jscomp$5$$,$on_edit$jscomp$10$$,$parent_id$jscomp$115$$,$files$jscomp$33$$,
$can_restore$$,$origin$jscomp$69$$)($APP.$cljs$cst$1913$projects$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$50$$))}()],null));$i__79991$$+=1}else return!0}()?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__79992$$),$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989$$($APP.$cljs$core$_chunked_rest$$($s__79990__$2$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__79992$$),null)}var $team$jscomp$49$$=$APP.$cljs$core$first$$($s__79990__$2$$);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_team_name$$($team$jscomp$49$$),$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($team$jscomp$49$$),$APP.$cljs$cst$871$options$$,function(){return function($team$jscomp$53$$,$s__79990__$2$jscomp$3$$,$temp__5825__auto__$jscomp$424$$,$is_lib_page_QMARK_$jscomp$3$$,$is_search_page_QMARK_$jscomp$3$$,$top__$1$jscomp$6$$,$left__$1$jscomp$7$$,$file$jscomp$188$$,$file_count$jscomp$3$$,$multi_QMARK_$jscomp$5$$,$current_team_id$jscomp$4$$,
$teams_STAR_$jscomp$3$$,$teams$jscomp$15$$,$current_team$jscomp$3$$,$other_teams$jscomp$3$$,$file_project_ids$jscomp$3$$,$current_projects$jscomp$3$$,$on_new_tab$jscomp$3$$,$on_duplicate$jscomp$6$$,$on_delete_accept$jscomp$4$$,$on_delete$jscomp$17$$,$on_move_success$jscomp$4$$,$on_move_accept$jscomp$3$$,$on_move$jscomp$4$$){return function $app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989_$_iter__79998$$($s__79999$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__79999__$2_temp__5825__auto____$1$jscomp$32$$=
$APP.$cljs$core$seq$$($s__79999$$);if($s__79999__$2_temp__5825__auto____$1$jscomp$32$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__79999__$2_temp__5825__auto____$1$jscomp$32$$)){var $JSCompiler_inline_result$jscomp$1935_c__5501__auto__$jscomp$64$$=$APP.$cljs$core$_chunked_first$$($s__79999__$2_temp__5825__auto____$1$jscomp$32$$),$size__5502__auto__$jscomp$64$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1935_c__5501__auto__$jscomp$64$$),$b__80001_sub_project$jscomp$2$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$64$$);
a:{for(var $i__80000$jscomp$inline_9165$$=0;;)if($i__80000$jscomp$inline_9165$$<$size__5502__auto__$jscomp$64$$){var $sub_project$jscomp$inline_9166_x$jscomp$inline_13188$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1935_c__5501__auto__$jscomp$64$$,$i__80000$jscomp$inline_9165$$),$b$jscomp$inline_13187$$=$b__80001_sub_project$jscomp$2$$;$sub_project$jscomp$inline_9166_x$jscomp$inline_13188$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_project_name$$($sub_project$jscomp$inline_9166_x$jscomp$inline_13188$$),
$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($sub_project$jscomp$inline_9166_x$jscomp$inline_13188$$),$APP.$cljs$cst$2359$handler$$,$on_move$jscomp$4$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$53$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($sub_project$jscomp$inline_9166_x$jscomp$inline_13188$$))],null);$b$jscomp$inline_13187$$.add($sub_project$jscomp$inline_9166_x$jscomp$inline_13188$$);$i__80000$jscomp$inline_9165$$+=1}else{$JSCompiler_inline_result$jscomp$1935_c__5501__auto__$jscomp$64$$=
!0;break a}$JSCompiler_inline_result$jscomp$1935_c__5501__auto__$jscomp$64$$=void 0}return $JSCompiler_inline_result$jscomp$1935_c__5501__auto__$jscomp$64$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__80001_sub_project$jscomp$2$$),$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989_$_iter__79998$$($APP.$cljs$core$_chunked_rest$$($s__79999__$2_temp__5825__auto____$1$jscomp$32$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__80001_sub_project$jscomp$2$$),null)}$b__80001_sub_project$jscomp$2$$=
$APP.$cljs$core$first$$($s__79999__$2_temp__5825__auto____$1$jscomp$32$$);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$app$main$ui$dashboard$file_menu$get_project_name$$($b__80001_sub_project$jscomp$2$$),$APP.$cljs$cst$266$id$$,$app$main$ui$dashboard$file_menu$get_project_id$$($b__80001_sub_project$jscomp$2$$),$APP.$cljs$cst$2359$handler$$,$on_move$jscomp$4$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$53$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($b__80001_sub_project$jscomp$2$$))],
null),$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989_$_iter__79998$$($APP.$cljs$core$rest$$($s__79999__$2_temp__5825__auto____$1$jscomp$32$$)))}return null}},null,null)}}($team$jscomp$49$$,$s__79990__$2$$,$temp__5825__auto__$jscomp$421$$,$is_lib_page_QMARK_$$,$is_search_page_QMARK_$$,$top__$1$jscomp$3$$,$left__$1$jscomp$4$$,$file$jscomp$185$$,$file_count$$,$multi_QMARK_$jscomp$2$$,$current_team_id$jscomp$1$$,$teams_STAR_$$,$teams$jscomp$12$$,$current_team$$,$other_teams$$,$file_project_ids$$,
$current_projects$$,$on_new_tab$$,$on_duplicate$jscomp$3$$,$on_delete_accept$jscomp$1$$,$on_delete$jscomp$14$$,$on_move_success$jscomp$1$$,$on_move_accept$$,$on_move$jscomp$1$$,$add_shared$jscomp$2$$,$del_shared$$,$on_add_shared$jscomp$1$$,$on_del_shared$$,$on_export_binary_files$$,$restore_fn$$,$on_restore_immediately$$,$on_delete_immediately$$,$left$jscomp$35$$,$navigate$jscomp$1$$,$on_close$jscomp$38$$,$top$jscomp$21$$,$can_edit$jscomp$5$$,$on_edit$jscomp$10$$,$parent_id$jscomp$115$$,$files$jscomp$33$$,
$can_restore$$,$origin$jscomp$69$$)($APP.$cljs$cst$1913$projects$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$49$$))}()],null),$app$main$ui$dashboard$file_menu$file_menu_STAR__$_iter__79989$$($APP.$cljs$core$rest$$($s__79990__$2$$)))}return null}},null,null)}($other_teams$$)}()],null)],null):null);$options$jscomp$627_props_79958_sub_options$jscomp$2$$=$APP.$cljs$core$truth_$$($can_restore$$)?new $APP.$cljs$core$PersistentVector$$(null,2,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$variadic$("dashboard.file-menu.restore-files-option",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($file_count$$)])),$APP.$cljs$cst$266$id$$,"restore-file",$APP.$cljs$cst$2359$handler$$,$on_restore_immediately$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.file-menu.delete-files-permanently-option",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($file_count$$)])),$APP.$cljs$cst$266$id$$,"delete-file",$APP.$cljs$cst$2359$handler$$,$on_delete_immediately$$],null)],null):$multi_QMARK_$jscomp$2$$?new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$truth_$$($can_edit$jscomp$5$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.duplicate-multi",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),$APP.$cljs$cst$266$id$$,"duplicate-multi",$APP.$cljs$cst$2359$handler$$,$on_duplicate$jscomp$3$$],null):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$947$$=$APP.$cljs$core$seq$$($current_projects$$)||$APP.$cljs$core$seq$$($other_teams$$);return $and__5023__auto__$jscomp$947$$?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$947$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.move-to-multi",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),$APP.$cljs$cst$266$id$$,"file-move-multi",$APP.$cljs$cst$871$options$$,$options$jscomp$627_props_79958_sub_options$jscomp$2$$],null):null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.export-binary-multi",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),
$APP.$cljs$cst$266$id$$,"file-binary-export-multi",$APP.$cljs$cst$2359$handler$$,$on_export_binary_files$$],null),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$948$$=$APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$948$$)?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$948$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("labels.unpublish-multi-files",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),$APP.$cljs$cst$266$id$$,"file-unpublish-multi",$APP.$cljs$cst$2359$handler$$,$on_del_shared$$],null):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$949$$=!$is_lib_page_QMARK_$$;return $and__5023__auto__$jscomp$949$$?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$949$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("labels.delete-multi-files",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_count$$])),$APP.$cljs$cst$266$id$$,"file-delete-multi",$APP.$cljs$cst$2359$handler$$,$on_delete$jscomp$14$$],null):null],null):new $APP.$cljs$core$PersistentVector$$(null,9,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$("dashboard.open-in-new-tab"),$APP.$cljs$cst$266$id$$,"file-open-new-tab",$APP.$cljs$cst$2359$handler$$,
$on_new_tab$$],null),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$950$$=!$is_search_page_QMARK_$$;return $and__5023__auto__$jscomp$950$$?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$950$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.rename"),$APP.$cljs$cst$266$id$$,"file-rename",$APP.$cljs$cst$2359$handler$$,$on_edit$jscomp$10$$],null):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$951$$=
!$is_search_page_QMARK_$$;return $and__5023__auto__$jscomp$951$$?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$951$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.duplicate"),$APP.$cljs$cst$266$id$$,"file-duplicate",$APP.$cljs$cst$2359$handler$$,$on_duplicate$jscomp$3$$],null):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$952_and__5023__auto____$1$jscomp$157_and__5023__auto____$2$jscomp$44$$=
!$is_lib_page_QMARK_$$;return $and__5023__auto__$jscomp$952_and__5023__auto____$1$jscomp$157_and__5023__auto____$2$jscomp$44$$?($and__5023__auto__$jscomp$952_and__5023__auto____$1$jscomp$157_and__5023__auto____$2$jscomp$44$$=!$is_search_page_QMARK_$$)?($and__5023__auto__$jscomp$952_and__5023__auto____$1$jscomp$157_and__5023__auto____$2$jscomp$44$$=$APP.$cljs$core$seq$$($current_projects$$)||$APP.$cljs$core$seq$$($other_teams$$))?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$952_and__5023__auto____$1$jscomp$157_and__5023__auto____$2$jscomp$44$$:
$and__5023__auto__$jscomp$952_and__5023__auto____$1$jscomp$157_and__5023__auto____$2$jscomp$44$$:$and__5023__auto__$jscomp$952_and__5023__auto____$1$jscomp$157_and__5023__auto____$2$jscomp$44$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.move-to"),$APP.$cljs$cst$266$id$$,"file-move-to",$APP.$cljs$cst$871$options$$,$options$jscomp$627_props_79958_sub_options$jscomp$2$$],null):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$953$$=
!$is_search_page_QMARK_$$;return $and__5023__auto__$jscomp$953$$?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$953$$}())?$APP.$cljs$core$truth_$$($APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$185$$))?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.unpublish-shared"),$APP.$cljs$cst$266$id$$,"file-del-shared",$APP.$cljs$cst$2359$handler$$,$on_del_shared$$],null):new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.add-shared"),$APP.$cljs$cst$266$id$$,"file-add-shared",$APP.$cljs$cst$2359$handler$$,$on_add_shared$jscomp$1$$],null):null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$1461$separator$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.download-binary-file"),$APP.$cljs$cst$266$id$$,
"download-binary-file",$APP.$cljs$cst$2359$handler$$,$on_export_binary_files$$],null),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$954_and__5023__auto____$1$jscomp$158$$=!$is_lib_page_QMARK_$$;return $and__5023__auto__$jscomp$954_and__5023__auto____$1$jscomp$158$$?($and__5023__auto__$jscomp$954_and__5023__auto____$1$jscomp$158$$=!$is_search_page_QMARK_$$)?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$954_and__5023__auto____$1$jscomp$158$$:$and__5023__auto__$jscomp$954_and__5023__auto____$1$jscomp$158$$}())?
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$1461$separator$$],null):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$955_and__5023__auto____$1$jscomp$159$$=!$is_lib_page_QMARK_$$;return $and__5023__auto__$jscomp$955_and__5023__auto____$1$jscomp$159$$?($and__5023__auto__$jscomp$955_and__5023__auto____$1$jscomp$159$$=!$is_search_page_QMARK_$$)?$can_edit$jscomp$5$$:$and__5023__auto__$jscomp$955_and__5023__auto____$1$jscomp$159$$:$and__5023__auto__$jscomp$955_and__5023__auto____$1$jscomp$159$$}())?
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$$,"file-delete",$APP.$cljs$cst$2359$handler$$,$on_delete$jscomp$14$$],null):null],null);return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$context_menu_a11y$context_menu_STAR_$$,{onClose:$on_close$jscomp$38$$,fixed:$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($top__$1$jscomp$3$$,0)||$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($left__$1$jscomp$4$$,
0),show:!0,minWidth:!0,top:$top__$1$jscomp$3$$,left:$left__$1$jscomp$4$$,options:$options$jscomp$627_props_79958_sub_options$jscomp$2$$,origin:$parent_id$jscomp$115$$})};
$app$main$ui$ds$product$empty_placeholder$empty_placeholder_STAR_$$=function($children$jscomp$319_props_79947$$){var $title$jscomp$50$$,$subtitle$jscomp$1$$,$props$jscomp$427$$;({className:$class$$jscomp$79_props__$1$jscomp$104$$,title:$title$jscomp$50$$,subtitle:$subtitle$jscomp$1$$,type:$decoration_type_or__5025__auto__$jscomp$inline_9168_type$jscomp$687$$,children:$children$jscomp$319_props_79947$$,...$props$jscomp$427$$}=$children$jscomp$319_props_79947$$);var $class$$jscomp$79_props__$1$jscomp$104$$=
{...$props$jscomp$427$$,className:""+($class$$jscomp$79_props__$1$jscomp$104$$??"")+" main_ui_ds_product_empty_placeholder__empty-placeholder","data-testid":"empty-placeholder"};var $decoration_type_or__5025__auto__$jscomp$inline_9168_type$jscomp$687$$="empty-placeholder-"+($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$truth_$$($decoration_type_or__5025__auto__$jscomp$inline_9168_type$jscomp$687$$)?$decoration_type_or__5025__auto__$jscomp$inline_9168_type$jscomp$687$$:1)??
"");return(0,$APP.$rumext$v2$create_element$$)("div",$class$$jscomp$79_props__$1$jscomp$104$$,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$raw_svg$raw_svg_STAR_$$,{id:""+($decoration_type_or__5025__auto__$jscomp$inline_9168_type$jscomp$687$$??"")+"-left",className:"main_ui_ds_product_empty_placeholder__svg-decor"}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_ds_product_empty_placeholder__text-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"title-medium",className:"main_ui_ds_product_empty_placeholder__placeholder-title",children:$title$jscomp$50$$}),$APP.$cljs$core$truth_$$($subtitle$jscomp$1$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-large",children:$subtitle$jscomp$1$$}):null,$children$jscomp$319_props_79947$$]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$raw_svg$raw_svg_STAR_$$,{id:""+($decoration_type_or__5025__auto__$jscomp$inline_9168_type$jscomp$687$$??
"")+"-right",className:"main_ui_ds_product_empty_placeholder__svg-decor"}))};
$app$main$ui$dashboard$placeholder$empty_project_placeholder_STAR_$$=function($on_create$jscomp$1_props_79970$$){var $on_finish_import$jscomp$4$$=$on_create$jscomp$1_props_79970$$.onFinishImport,$project_id$jscomp$41$$=$on_create$jscomp$1_props_79970$$.projectId;$on_create$jscomp$1_props_79970$$=$on_create$jscomp$1_props_79970$$.onCreate;var $file_input$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$on_add_library$$=$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,
3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-libraries-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard",$APP.$cljs$cst$1355$section$$,"empty-placeholder-projects"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://penpot.app/penpothub/libraries-templates")}),$on_import$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$$($file_input$jscomp$1$$))});
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_placeholder__empty-project-container",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$on_create$jscomp$1_props_79970$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.add-file"),className:"main_ui_dashboard_placeholder__empty-project-card",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_placeholder__empty-project-card-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.create")}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_placeholder__empty-project-card-subtitle",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.start")})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$on_import$jscomp$1$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.import"),className:"main_ui_dashboard_placeholder__empty-project-card",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_placeholder__empty-project-card-title",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.import")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_placeholder__empty-project-card-subtitle",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.import-penpot")})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$on_add_library$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.go-to-libraries"),className:"main_ui_dashboard_placeholder__empty-project-card",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_placeholder__empty-project-card-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.add-library")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_placeholder__empty-project-card-subtitle",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.explore")})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$import$0$import_form$$,
{ref:$file_input$jscomp$1$$,"project-id":$project_id$jscomp$41$$,"on-finish-import":$on_finish_import$jscomp$4$$})]})};
$app$main$ui$dashboard$placeholder$make_has_other_files_or_projects_ref$$=function($team_id$jscomp$143$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($state$jscomp$1121$$){var $files$jscomp$37_or__5025__auto__$jscomp$1278$$=function(){var $projects$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1121$$,$APP.$cljs$cst$1913$projects$$);return $APP.$cljs$core$some$$(function($p__79976_project$jscomp$28$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__79976_project$jscomp$28$$,
0,null);$p__79976_project$jscomp$28$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__79976_project$jscomp$28$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1912$team_id$$.$cljs$core$IFn$_invoke$arity$1$($p__79976_project$jscomp$28$$),$team_id$jscomp$143$$)&&$APP.$cljs$core$not$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($p__79976_project$jscomp$28$$))},$projects$jscomp$8$$)}();if($APP.$cljs$core$truth_$$($files$jscomp$37_or__5025__auto__$jscomp$1278$$))return $files$jscomp$37_or__5025__auto__$jscomp$1278$$;
$files$jscomp$37_or__5025__auto__$jscomp$1278$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1121$$,$APP.$cljs$cst$1901$files$$);return $APP.$cljs$core$some$$(function($file$jscomp$189_p__79984$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file$jscomp$189_p__79984$$,0,null);$file$jscomp$189_p__79984$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file$jscomp$189_p__79984$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1912$team_id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$189_p__79984$$),
$team_id$jscomp$143$$)},$files$jscomp$37_or__5025__auto__$jscomp$1278$$)},$APP.$app$main$store$state$$)};
$app$main$ui$dashboard$placeholder$empty_grid_placeholder_STAR_$$=function($origin$jscomp$73_props_79988$$){var $on_finish_import$jscomp$5$$=$origin$jscomp$73_props_79988$$.onFinishImport,$project_id$jscomp$42$$=$origin$jscomp$73_props_79988$$.projectId,$team_id$jscomp$144$$=$origin$jscomp$73_props_79988$$.teamId,$limit$jscomp$7$$=$origin$jscomp$73_props_79988$$.limit,$can_edit$jscomp$9$$=$origin$jscomp$73_props_79988$$.canEdit,$is_dragging$$=$origin$jscomp$73_props_79988$$.isDragging,$create_fn$$=
$origin$jscomp$73_props_79988$$.createFn;$origin$jscomp$73_props_79988$$=$origin$jscomp$73_props_79988$$.origin;var $on_click$jscomp$61$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($create_fn$$)],function(){return $create_fn$$.$cljs$core$IFn$_invoke$arity$1$?$create_fn$$.$cljs$core$IFn$_invoke$arity$1$("dashboard:empty-folder-placeholder"):$create_fn$$("dashboard:empty-folder-placeholder")}),$show_text_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),
$show_text_QMARK_$jscomp$1$$=$APP.$cljs$core$_deref$$($show_text_STAR_$$),$on_mouse_enter$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_text_STAR_$$,!0)}),$on_mouse_leave$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_text_STAR_$$,null)}),$has_other_QMARK__has_other_STAR_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$144$$)],
function(){return $app$main$ui$dashboard$placeholder$make_has_other_files_or_projects_ref$$($team_id$jscomp$144$$)});$has_other_QMARK__has_other_STAR_$$=$APP.$rumext$v2$deref$$($has_other_QMARK__has_other_STAR_$$);return $is_dragging$$===!0?(0,$APP.$rumext$v2$jsx$$)("ul",{style:{gridTemplateColumns:["repeat(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($limit$jscomp$7$$),", 1fr)"].join("")},className:"main_ui_dashboard_placeholder__grid-row main_ui_dashboard_placeholder__no-wrap",children:(0,$APP.$rumext$v2$jsx$$)("li",
{className:"main_ui_dashboard_placeholder__grid-item main_ui_dashboard_placeholder__grid-empty-placeholder main_ui_dashboard_placeholder__dragged"})}):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4984$libraries$$,$origin$jscomp$73_props_79988$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$empty_placeholder$empty_placeholder_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-libraries-title"),type:2,subtitle:$APP.$cljs$core$truth_$$($can_edit$jscomp$9$$)?
null:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-libraries-subtitle-viewer-role"),className:"main_ui_dashboard_placeholder__empty-placeholder-libraries",children:$APP.$cljs$core$truth_$$($can_edit$jscomp$9$$)?$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-libraries"),className:"main_ui_dashboard_placeholder__placeholder-markdown",tagName:"span"}):null}):
$APP.$cljs$core$not$$($has_other_QMARK__has_other_STAR_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$placeholder$empty_project_placeholder_STAR_$$,{onCreate:$on_click$jscomp$61$$,onFinishImport:$on_finish_import$jscomp$5$$,projectId:$project_id$jscomp$42$$}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_placeholder__grid-empty-placeholder",children:(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_click$jscomp$61$$,onMouseEnter:$on_mouse_enter$$,onMouseLeave:$on_mouse_leave$$,
className:"main_ui_dashboard_placeholder__create-new",children:$APP.$cljs$core$truth_$$($show_text_QMARK_$jscomp$1$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-project.create"):$APP.$app$main$ui$icons$add$$})})};
$app$main$ui$dashboard$placeholder$loading_placeholder_STAR_$$=function(){return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$loader$loader_STAR_$$,{width:32,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.loading"),className:"main_ui_dashboard_placeholder__placeholder-loader",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_placeholder__placeholder-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.loading-files")})})};
$app$main$ui$dashboard$grid$persist_thumbnail$$=function($file_id$jscomp$411$$,$revn$jscomp$10$$,$blob$jscomp$30$$){return $APP.$beicon$v2$core$map$$($APP.$cljs$cst$266$id$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2218$create_file_thumbnail$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$411$$,$APP.$cljs$cst$2230$revn$$,$revn$jscomp$10$$,$APP.$cljs$cst$1623$media$$,$blob$jscomp$30$$],null)))};
$app$main$ui$dashboard$grid$render_thumbnail$$=function($file_id$jscomp$412$$,$revn$jscomp$11$$){return $APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))?$APP.$app$main$worker$ask_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2972$cmd$$,$cljs$cst$6047$thumbnails_SLASH_generate_for_file_wasm$$,$APP.$cljs$cst$2230$revn$$,$revn$jscomp$11$$,$APP.$cljs$cst$1628$file_id$$,
$file_id$jscomp$412$$,$APP.$cljs$cst$288$width$$,252],null)):$APP.$beicon$v2$core$mapcat$$(function($fonts$jscomp$38_p__80503$$){var $map__80504__$1$$=$APP.$cljs$core$__destructure_map$$($fonts$jscomp$38_p__80503$$);$fonts$jscomp$38_p__80503$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80504__$1$$,$APP.$cljs$cst$2987$fonts$$);return $APP.$beicon$v2$core$map$$(function($styles$jscomp$33$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__80504__$1$$,$APP.$cljs$cst$2899$styles$$,
$styles$jscomp$33$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$288$width$$,252]))},$app$main$fonts$render_font_styles$$($fonts$jscomp$38_p__80503$$))},$APP.$app$main$worker$ask_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2972$cmd$$,$cljs$cst$6048$thumbnails_SLASH_generate_for_file$$,$APP.$cljs$cst$2230$revn$$,$revn$jscomp$11$$,$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$412$$,$APP.$cljs$cst$288$width$$,
252],null)))};
$app$main$ui$dashboard$grid$grid_item_thumbnail_STAR_$$=function($can_restore$jscomp$4_props_80507$$){var $bg_color$jscomp$1_file$jscomp$190$$=$can_restore$jscomp$4_props_80507$$.file,$can_edit$jscomp$10$$=$can_restore$jscomp$4_props_80507$$.canEdit;$can_restore$jscomp$4_props_80507$$=$can_restore$jscomp$4_props_80507$$.canRestore;var $file_id$jscomp$414$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bg_color$jscomp$1_file$jscomp$190$$,$APP.$cljs$cst$266$id$$),$revn$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bg_color$jscomp$1_file$jscomp$190$$,
$APP.$cljs$cst$2230$revn$$),$thumbnail_id$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bg_color$jscomp$1_file$jscomp$190$$,$APP.$cljs$cst$2525$thumbnail_id$$);$bg_color$jscomp$1_file$jscomp$190$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bg_color$jscomp$1_file$jscomp$190$$,$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2043$background$$);var $container$jscomp$95$$=(0,$APP.$rumext$v2$use_ref$$)(),$visible_QMARK_$jscomp$6$$=
$APP.$app$main$ui$hooks$use_visible$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($container$jscomp$95$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$414$$),$APP.$rumext$v2$adapt$$($revn$jscomp$13$$),$APP.$rumext$v2$adapt$$($visible_QMARK_$jscomp$6$$),$APP.$rumext$v2$adapt$$($thumbnail_id$jscomp$2$$)],function(){if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($visible_QMARK_$jscomp$6$$)?$APP.$cljs$core$not$$($thumbnail_id$jscomp$2$$):
$visible_QMARK_$jscomp$6$$)){var $subscription$jscomp$8$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$(function($thumbnail_id__$1$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$set_file_thumbnail$$($file_id$jscomp$414$$,$thumbnail_id__$1$$))},function($cause$jscomp$96$$){$APP.$app$common$logging$enabled_QMARK_$$("app.main.ui.dashboard.grid",$APP.$cljs$cst$847$error$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,
4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$273$hint$$,"unable to render thumbnail"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$6049$file_if$$,$file_id$jscomp$414$$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2230$revn$$,$revn$jscomp$13$$],null),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$141$message$$,$APP.$cljs$core$ex_message$$($cause$jscomp$96$$)],null)],null)}),null,"app.main.ui.dashboard.grid",$APP.$cljs$cst$847$error$$,!1);return null},$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$dashboard$grid$persist_thumbnail$$,$file_id$jscomp$414$$,$revn$jscomp$13$$),$APP.$beicon$v2$core$mapcat$$($APP.$app$main$rasterizer$render$$,
$app$main$ui$dashboard$grid$render_thumbnail$$($file_id$jscomp$414$$,$revn$jscomp$13$$))));return $APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$beicon$v2$core$dispose_BANG_$$,$subscription$jscomp$8$$)}return null});return(0,$APP.$rumext$v2$jsx$$)("div",{style:{backgroundColor:$bg_color$jscomp$1_file$jscomp$190$$},ref:$container$jscomp$95$$,className:"main_ui_dashboard_grid__grid-item-th "+($APP.$cljs$core$truth_$$($can_restore$jscomp$4_props_80507$$)?"main_ui_dashboard_grid__deleted-item":
""),children:$APP.$cljs$core$truth_$$($visible_QMARK_$jscomp$6$$)?$APP.$cljs$core$truth_$$($thumbnail_id$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)("img",{draggable:""+($can_edit$jscomp$10$$??""),src:$APP.$app$config$resolve_media$$($thumbnail_id$jscomp$2$$),loading:"lazy",decoding:"async",className:"main_ui_dashboard_grid__grid-item-thumbnail-image"}):$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$loader$loader_STAR_$$,{className:"main_ui_dashboard_grid__grid-loader",draggable:""+($can_edit$jscomp$10$$??
""),overlay:!0,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.loading")}):null})};
$app$main$ui$dashboard$grid$grid_item_library_STAR_$$=function($can_restore$jscomp$5_props_80522$$){var $file$jscomp$191$$=$can_restore$jscomp$5_props_80522$$.file;$can_restore$jscomp$5_props_80522$$=$can_restore$jscomp$5_props_80522$$.canRestore;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file$jscomp$191$$)],function(){if($APP.$cljs$core$truth_$$($file$jscomp$191$$)){var $font_ids$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1741$font_id$$,
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($file$jscomp$191$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3822$library_summary$$,$APP.$cljs$cst$2177$typographies$$,$cljs$cst$6050$sample$$],null),$APP.$cljs$core$PersistentVector$EMPTY$$));return $APP.$cljs$core$run_BANG_$$($APP.$app$main$fonts$ensure_loaded_BANG_$$,$font_ids$$)}return null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__grid-item-th main_ui_dashboard_grid__library "+
($APP.$cljs$core$truth_$$($can_restore$jscomp$5_props_80522$$)?"main_ui_dashboard_grid__deleted-item":""),children:$file$jscomp$191$$==null?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$loader$loader_STAR_$$,{className:"main_ui_dashboard_grid__grid-loader",overlay:!0,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.loading")}):function(){var $summary$jscomp$6_typographies$jscomp$12$$=$APP.$cljs$cst$3822$library_summary$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$191$$),
$components$jscomp$25$$=$APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$),$colors$jscomp$27$$=$APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$);$summary$jscomp$6_typographies$jscomp$12$$=$APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($components$jscomp$25$$)===
0&&$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($colors$jscomp$27$$)===0&&$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$)===0?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__asset-section",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.components")}),
(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_grid__num-assets",children:[" (",0,")"]})]})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__asset-section",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.colors")}),(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_grid__num-assets",
children:[" (",0,")"]})]})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__asset-section",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography")}),(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_grid__num-assets",children:[" (",0,")"]})]})})]}):null,$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($components$jscomp$25$$)>
0?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-section",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.components")}),(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_grid__num-assets",children:[" (",$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($components$jscomp$25$$),
")"]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-list",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$251$$,$JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$){var $JSCompiler_temp_const$jscomp$1937$$=$out_arr__44057__auto__$jscomp$251$$.push,$root_id$jscomp$inline_9170$$=$APP.$cljs$cst$2045$main_instance_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$);
$JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$=(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-list-item",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$render$component_svg$$,{"root-shape":$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1615$objects$$,$root_id$jscomp$inline_9170$$],
null)),objects:$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$)}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__name-block",children:(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$),className:"main_ui_dashboard_grid__item-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$)})})]},
["assets-component-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$))].join(""));$JSCompiler_temp_const$jscomp$1937$$.call($out_arr__44057__auto__$jscomp$251$$,$JSCompiler_inline_result$jscomp$1939_component$jscomp$132$$);return $out_arr__44057__auto__$jscomp$251$$},[],$cljs$cst$6050$sample$$.$cljs$core$IFn$_invoke$arity$1$($components$jscomp$25$$)),$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($components$jscomp$25$$)>
$APP.$cljs$core$count$$($cljs$cst$6050$sample$$.$cljs$core$IFn$_invoke$arity$1$($components$jscomp$25$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__asset-list-item",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__name-block",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_grid__item-name",children:"(...)"})})}):null]})]}):null,$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($colors$jscomp$27$$)>0?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_dashboard_grid__asset-section",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.colors")}),(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_grid__num-assets",children:[" (",$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($colors$jscomp$27$$),")"]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_dashboard_grid__asset-list",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$252$$,$JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$){var $JSCompiler_temp_const$jscomp$1940$$=$out_arr__44057__auto__$jscomp$252$$.push,$default_name$jscomp$inline_9172$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$))?$APP.$app$util$color$gradient_type__GT_string$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1708$gradient$$,$APP.$cljs$cst$139$type$$],null))):$APP.$cljs$core$truth_$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$))?$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$):$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$);
$JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$=(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-list-item main_ui_dashboard_grid__color-item",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$color_bullet$color_bullet$$,{color:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$),$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$),
$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$)],null),mini:!0}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__name-block",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_grid__color-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$)}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$),
$default_name$jscomp$inline_9172$$)?null:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_grid__color-value",children:$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$)})]})]},["assets-color-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$))].join(""));$JSCompiler_temp_const$jscomp$1940$$.call($out_arr__44057__auto__$jscomp$252$$,
$JSCompiler_inline_result$jscomp$1942_color$jscomp$235$$);return $out_arr__44057__auto__$jscomp$252$$},[],$cljs$cst$6050$sample$$.$cljs$core$IFn$_invoke$arity$1$($colors$jscomp$27$$)),$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($colors$jscomp$27$$)>$APP.$cljs$core$count$$($cljs$cst$6050$sample$$.$cljs$core$IFn$_invoke$arity$1$($colors$jscomp$27$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__asset-list-item",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__name-block",
children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_grid__item-name",children:"(...)"})})}):null]})]}):null,$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$)>0?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-section",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography")}),
(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_grid__num-assets",children:[" (",$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$),")"]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__asset-list",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$253$$,$typography$jscomp$39$$){$out_arr__44057__auto__$jscomp$253$$.push((0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_dashboard_grid__asset-list-item",children:[(0,$APP.$rumext$v2$jsx$$)("div",{style:{fontFamily:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$39$$),fontWeight:$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$39$$),fontStyle:$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$39$$)},className:"main_ui_dashboard_grid__typography-sample",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.sample")}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__name-block",children:(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$39$$),className:"main_ui_dashboard_grid__item-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$39$$)})})]},["assets-typography-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$39$$))].join("")));
return $out_arr__44057__auto__$jscomp$253$$},[],$cljs$cst$6050$sample$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$)),$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$)>$APP.$cljs$core$count$$($cljs$cst$6050$sample$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$6_typographies$jscomp$12$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__asset-list-item",children:(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_dashboard_grid__name-block",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_grid__item-name",children:"(...)"})})}):null]})]}):null]})}()})};
$app$main$ui$dashboard$grid$grid_item_metadata_STAR_$$=function($JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$){$JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$=$JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$.file;var $or__5025__auto__$jscomp$inline_9174$$=$APP.$cljs$cst$4733$will_be_deleted_at$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$);
$JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$=$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_9174$$)?$or__5025__auto__$jscomp$inline_9174$$:$APP.$cljs$cst$1721$modified_at$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$);$JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$=$APP.$app$common$time$timeago$$($JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$);
return(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.deleted.will-be-deleted-at",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$])),className:"main_ui_dashboard_grid__date",children:$JSCompiler_inline_result$jscomp$1943_file$jscomp$192_props_80557_time$jscomp$8$$})};
$app$main$ui$dashboard$grid$create_counter_element$$=function($file_count$jscomp$4$$){var $counter_el$jscomp$2$$=$APP.$app$util$dom$create_element$cljs$0core$0IFn$0_invoke$0arity$01$$("div");$APP.$app$util$dom$set_property_BANG_$$($counter_el$jscomp$2$$,"class","main_ui_dashboard_grid__drag-counter");$APP.$app$util$dom$set_text_BANG_$$($counter_el$jscomp$2$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($file_count$jscomp$4$$));return $counter_el$jscomp$2$$};
$app$main$ui$dashboard$grid$grid_item_STAR_$$=function($origin$jscomp$74_props_80561$$){var $file$jscomp$193$$=$origin$jscomp$74_props_80561$$.file,$can_edit$jscomp$11$$=$origin$jscomp$74_props_80561$$.canEdit,$selected_files$jscomp$1$$=$origin$jscomp$74_props_80561$$.selectedFiles,$can_restore$jscomp$6$$=$origin$jscomp$74_props_80561$$.canRestore;$origin$jscomp$74_props_80561$$=$origin$jscomp$74_props_80561$$.origin;var $file_id$jscomp$415$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$193$$,
$APP.$cljs$cst$266$id$$),$state$jscomp$1122$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$dashboard_local$$),$menu_pos$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1122$$,$APP.$cljs$cst$4739$menu_pos$$),$menu_open_QMARK_$jscomp$2$$=function(){var $and__5023__auto__$jscomp$957$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1122$$,$APP.$cljs$cst$4738$menu_open$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$957$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($file_id$jscomp$415$$,
$APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1122$$)):$and__5023__auto__$jscomp$957$$}(),$selected_QMARK_$jscomp$31$$=$APP.$cljs$core$contains_QMARK_$$($selected_files$jscomp$1$$,$file_id$jscomp$415$$),$selected_num$$=$APP.$cljs$core$count$$($selected_files$jscomp$1$$),$node_ref$jscomp$6$$=(0,$APP.$rumext$v2$use_ref$$)(),$menu_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$is_library_view_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($origin$jscomp$74_props_80561$$,
$APP.$cljs$cst$4984$libraries$$),$on_menu_close$jscomp$3$$=$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$main$data$dashboard$hide_file_menu$$())}),$on_select$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_QMARK_$jscomp$31$$),$APP.$rumext$v2$adapt$$($selected_num$$)],function($event$jscomp$665$$){return!$selected_QMARK_$jscomp$31$$||$selected_num$$>
1?($APP.$app$util$dom$stop_propagation$$($event$jscomp$665$$),$event$jscomp$665$$.shiftKey||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$clear_selected_files$$()),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$toggle_file_select$$($file$jscomp$193$$))):null}),$on_navigate$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$415$$),$APP.$rumext$v2$adapt$$($can_restore$jscomp$6$$)],
function($event$jscomp$666$$){return $APP.$cljs$core$truth_$$($can_restore$jscomp$6$$)?null:$APP.$cljs$core$truth_$$($APP.$app$util$dom$child_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$666$$),$APP.$rumext$v2$ref_val$$($menu_ref$$)))?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_workspace$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$415$$])))}),
$on_drag_start$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_QMARK_$jscomp$31$$),$APP.$rumext$v2$adapt$$($selected_num$$)],function($event$jscomp$667$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$hide_file_menu$$());if($APP.$cljs$core$truth_$$($can_edit$jscomp$11$$)){var $offset$jscomp$212$$=$APP.$app$util$dom$get_offset_position$$($event$jscomp$667$$.nativeEvent),$item_el$jscomp$1$$=$APP.$rumext$v2$ref_val$$($node_ref$jscomp$6$$),
$counter_el$jscomp$3$$=$app$main$ui$dashboard$grid$create_counter_element$$($selected_QMARK_$jscomp$31$$?$selected_num$$:1);$selected_QMARK_$jscomp$31$$||($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$clear_selected_files$$()),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$toggle_file_select$$($file$jscomp$193$$)));$APP.$app$util$dom$dnd$set_data_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($event$jscomp$667$$,
"penpot/files","dummy");$APP.$app$util$dom$dnd$set_allowed_effect_BANG_$$($event$jscomp$667$$);$APP.$app$util$dom$append_child_BANG_$$($item_el$jscomp$1$$,$counter_el$jscomp$3$$);$APP.$app$util$dom$dnd$set_drag_image_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($event$jscomp$667$$,$item_el$jscomp$1$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$212$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$212$$));return(0,$APP.$app$util$timers$request_animation_frame$$)(function(){if($APP.$cljs$core$truth_$$($APP.$app$util$dom$child_QMARK_$$($counter_el$jscomp$3$$,
$item_el$jscomp$1$$))){$item_el$jscomp$1$$!=null&&$item_el$jscomp$1$$.removeChild($counter_el$jscomp$3$$);var $JSCompiler_temp$jscomp$661$$=$item_el$jscomp$1$$}else $JSCompiler_temp$jscomp$661$$=null;return $JSCompiler_temp$jscomp$661$$})}return null}),$on_menu_click$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file$jscomp$193$$),$APP.$rumext$v2$adapt$$($selected_QMARK_$jscomp$31$$)],function($JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$){$APP.$app$util$dom$stop_propagation$$($JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$);
$selected_QMARK_$jscomp$31$$||($JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$.shiftKey||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$clear_selected_files$$()),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$toggle_file_select$$($file$jscomp$193$$)));var $client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$=$APP.$app$util$dom$get_client_position$$($JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$);
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$)==null&&$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$)==null?($client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$)),$JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$=
$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$),$client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$=$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$),$JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$,
$JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$)):$JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$=$client_position_points$jscomp$inline_9179_x$jscomp$inline_9181$$;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$show_file_menu_with_position$$($file_id$jscomp$415$$,$JSCompiler_temp$jscomp$1944_event$jscomp$668_y$jscomp$inline_9180$$))}),$on_context_menu$jscomp$30$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_menu_click$jscomp$5$$)],
function($event$jscomp$669$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$669$$);return $on_menu_click$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$669$$):$on_menu_click$jscomp$5$$($event$jscomp$669$$)}),$edit$jscomp$17$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file$jscomp$193$$)],function($name$jscomp$472_name_80645__$1$$){$name$jscomp$472_name_80645__$1$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$472_name_80645__$1$$);
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$472_name_80645__$1$$,"")&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$rename_file$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($file$jscomp$193$$,$APP.$cljs$cst$723$name$$,$name$jscomp$472_name_80645__$1$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$stop_edit_file_name$$())}),$on_edit$jscomp$14$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file$jscomp$193$$)],
function($event$jscomp$670$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$670$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$start_edit_file_name$$($file_id$jscomp$415$$))}),$on_key_down$jscomp$21$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_navigate$jscomp$1$$),$APP.$rumext$v2$adapt$$($on_select$jscomp$8$$)],function($event$jscomp$671$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$671$$);
$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$671$$))&&($on_navigate$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_navigate$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$671$$):$on_navigate$jscomp$1$$($event$jscomp$671$$));return $event$jscomp$671$$.shiftKey?$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$=(0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($event$jscomp$671$$);
if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$))return $or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$;$or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$=(0,$APP.$app$util$keyboard$left_arrow_QMARK_$$)($event$jscomp$671$$);if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$))return $or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$;
$or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$=(0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($event$jscomp$671$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$)?$or__5025__auto__$jscomp$1280_or__5025__auto____$1$jscomp$142_or__5025__auto____$2$jscomp$40$$:(0,$APP.$app$util$keyboard$right_arrow_QMARK_$$)($event$jscomp$671$$)}())?$on_select$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$?
$on_select$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$671$$):$on_select$jscomp$8$$($event$jscomp$671$$):null:null}),$on_menu_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_menu_click$jscomp$5$$)],function($event$jscomp$672$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$672$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$672$$),$APP.$app$util$dom$prevent_default$$($event$jscomp$672$$),
$on_menu_click$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$672$$):$on_menu_click$jscomp$5$$($event$jscomp$672$$)):null});return(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_dashboard_grid__grid-item main_ui_dashboard_grid__project-th "+($is_library_view_QMARK_$$?"main_ui_dashboard_grid__library":""),children:(0,$APP.$rumext$v2$jsxs$$)("div",{onDoubleClick:$on_navigate$jscomp$1$$,role:"button",className:($selected_QMARK_$jscomp$31$$?
"main_ui_dashboard_grid__selected":"")+" "+($is_library_view_QMARK_$$?"main_ui_dashboard_grid__library":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__overlay"}),$is_library_view_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_item_library_STAR_$$,{file:$file$jscomp$193$$,canRestore:$can_restore$jscomp$6$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_item_thumbnail_STAR_$$,{file:$file$jscomp$193$$,canEdit:$can_edit$jscomp$11$$,
canRestore:$can_restore$jscomp$6$$}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$958$$=$APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$193$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$958$$)?!$is_library_view_QMARK_$$:$and__5023__auto__$jscomp$958$$}())?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__item-badge",children:$APP.$app$main$ui$icons$library$$}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__info-wrapper",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_grid__item-info",children:[$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$959$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($file_id$jscomp$415$$,$APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1122$$));return $and__5023__auto__$jscomp$959$$?$APP.$cljs$cst$2161$edition$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1122$$):$and__5023__auto__$jscomp$959$$}())?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$dashboard$inline_edition$inline_edition$$,
{content:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$193$$),"on-end":$edit$jscomp$17$$,"max-length":250}):(0,$APP.$rumext$v2$jsx$$)("h3",{children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$193$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_item_metadata_STAR_$$,{file:$file$jscomp$193$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_grid__project-th-actions "+($APP.$cljs$core$truth_$$($menu_open_QMARK_$jscomp$2$$)?
"main_ui_dashboard_grid__force-display":""),children:(0,$APP.$rumext$v2$jsxs$$)("div",{role:"button","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.options"),tabIndex:"0",className:"main_ui_dashboard_grid__project-th-icon main_ui_dashboard_grid__menu",children:[$app$main$ui$dashboard$grid$menu_icon$$,$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$31$$?$menu_open_QMARK_$jscomp$2$$:$selected_QMARK_$jscomp$31$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$portal$portal_on_document_STAR_$$,
{children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$file_menu$file_menu_STAR_$$,{parentId:""+($file_id$jscomp$415$$??"")+"-action-menu",origin:$origin$jscomp$74_props_80561$$,top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($menu_pos$$),onClose:$on_menu_close$jscomp$3$$,canRestore:$can_restore$jscomp$6$$,files:$APP.$cljs$core$vals$$($selected_files$jscomp$1$$),onEdit:$on_edit$jscomp$14$$,canEdit:$can_edit$jscomp$11$$,left:24+$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($menu_pos$$),
navigate:!0})}):null],id:""+($file_id$jscomp$415$$??"")+"-action-menu",onClick:$on_menu_click$jscomp$5$$,ref:$menu_ref$$,onKeyDown:$on_menu_key_down$$})})]})],onContextMenu:$on_context_menu$jscomp$30$$,draggable:""+($can_edit$jscomp$11$$??""),onClick:$on_select$jscomp$8$$,title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$193$$),ref:$node_ref$jscomp$6$$,onDragStart:$on_drag_start$jscomp$6$$,onKeyDown:$on_key_down$jscomp$21$$})})};
$app$main$ui$dashboard$grid$grid_STAR_$$=function($node_ref$jscomp$7_props_80574$$){var $limit$jscomp$8$$=$node_ref$jscomp$7_props_80574$$.limit,$can_edit$jscomp$12$$=$node_ref$jscomp$7_props_80574$$.canEdit,$on_finish_import$jscomp$6_project$jscomp$29$$=$node_ref$jscomp$7_props_80574$$.project,$selected_files$jscomp$2$$=$node_ref$jscomp$7_props_80574$$.selectedFiles,$create_fn$jscomp$1$$=$node_ref$jscomp$7_props_80574$$.createFn,$files$jscomp$38$$=$node_ref$jscomp$7_props_80574$$.files,$can_restore$jscomp$7$$=
$node_ref$jscomp$7_props_80574$$.canRestore,$origin$jscomp$75$$=$node_ref$jscomp$7_props_80574$$.origin,$dragging_QMARK_$jscomp$10$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$project_id$jscomp$43$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($on_finish_import$jscomp$6_project$jscomp$29$$,$APP.$cljs$cst$266$id$$),$team_id$jscomp$145$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($on_finish_import$jscomp$6_project$jscomp$29$$,$APP.$cljs$cst$1912$team_id$$);
$node_ref$jscomp$7_props_80574$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$on_finish_import$jscomp$6_project$jscomp$29$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id$jscomp$43$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$145$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$project$fetch_files$cljs$0core$0IFn$0_invoke$0arity$01$$($project_id$jscomp$43$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$team$fetch_shared_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$145$$),
$app$main$data$dashboard$clear_selected_files$$()]))});var $import_files$$=$APP.$app$main$ui$dashboard$import$0$use_import_file$$($project_id$jscomp$43$$,$on_finish_import$jscomp$6_project$jscomp$29$$),$on_scroll$jscomp$1$$=$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$main$data$dashboard$hide_file_menu$$())}),$on_drag_enter$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$398$$){var $JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$;
if($JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$=$APP.$cljs$core$truth_$$($can_edit$jscomp$12$$)){if($JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$=$APP.$cljs$core$not$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$398$$,"penpot/files")))$JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$=
$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$398$$,"Files"),$JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$)?$JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$:
$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$398$$,"application/x-moz-file");$JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$)}return $JSCompiler_inline_result$jscomp$1946_JSCompiler_temp$jscomp$1945_and__5023__auto__$jscomp$inline_9183_or__5025__auto__$jscomp$inline_9184$$?
($APP.$app$util$dom$prevent_default$$($e$jscomp$398$$),$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$10$$,!0)):null}),$on_drag_over$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$399$$){var $JSCompiler_inline_result$jscomp$1947_or__5025__auto__$jscomp$inline_9186$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$399$$,"Files");$JSCompiler_inline_result$jscomp$1947_or__5025__auto__$jscomp$inline_9186$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1947_or__5025__auto__$jscomp$inline_9186$$)?
$JSCompiler_inline_result$jscomp$1947_or__5025__auto__$jscomp$inline_9186$$:$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$399$$,"application/x-moz-file");return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1947_or__5025__auto__$jscomp$inline_9186$$)?$APP.$app$util$dom$prevent_default$$($e$jscomp$399$$):null}),$on_drag_leave$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$400$$){return $APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$from_child_QMARK_$$($e$jscomp$400$$))?
null:$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$10$$,!1)}),$on_drop$jscomp$21$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($G__80582_e$jscomp$401$$){if($APP.$cljs$core$truth_$$($can_edit$jscomp$12$$)){var $JSCompiler_inline_result$jscomp$1948_and__5023__auto__$jscomp$inline_9188_or__5025__auto__$jscomp$inline_9189$$;if($JSCompiler_inline_result$jscomp$1948_and__5023__auto__$jscomp$inline_9188_or__5025__auto__$jscomp$inline_9189$$=$APP.$cljs$core$not$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($G__80582_e$jscomp$401$$,
"penpot/files")))$JSCompiler_inline_result$jscomp$1948_and__5023__auto__$jscomp$inline_9188_or__5025__auto__$jscomp$inline_9189$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($G__80582_e$jscomp$401$$,"Files"),$JSCompiler_inline_result$jscomp$1948_and__5023__auto__$jscomp$inline_9188_or__5025__auto__$jscomp$inline_9189$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1948_and__5023__auto__$jscomp$inline_9188_or__5025__auto__$jscomp$inline_9189$$)?$JSCompiler_inline_result$jscomp$1948_and__5023__auto__$jscomp$inline_9188_or__5025__auto__$jscomp$inline_9189$$:
$APP.$app$util$dom$dnd$has_type_QMARK_$$($G__80582_e$jscomp$401$$,"application/x-moz-file");return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1948_and__5023__auto__$jscomp$inline_9188_or__5025__auto__$jscomp$inline_9189$$)?($APP.$app$util$dom$prevent_default$$($G__80582_e$jscomp$401$$),$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$10$$,!1),$G__80582_e$jscomp$401$$=$G__80582_e$jscomp$401$$.dataTransfer.files,$import_files$$.$cljs$core$IFn$_invoke$arity$1$?$import_files$$.$cljs$core$IFn$_invoke$arity$1$($G__80582_e$jscomp$401$$):
$import_files$$($G__80582_e$jscomp$401$$)):null}return $APP.$app$util$dom$prevent_default$$($G__80582_e$jscomp$401$$)});return(0,$APP.$rumext$v2$jsx$$)("div",{onDragEnter:$on_drag_enter$jscomp$10$$,onDragLeave:$on_drag_leave$jscomp$8$$,className:"main_ui_dashboard_grid__dashboard-grid",children:$files$jscomp$38$$==null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$placeholder$loading_placeholder_STAR_$$,{}):$APP.$cljs$core$seq$$($files$jscomp$38$$)?$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$254$$,
$p__80583_slice$jscomp$1$$){var $index$jscomp$575$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__80583_slice$jscomp$1$$,0,null);$p__80583_slice$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__80583_slice$jscomp$1$$,1,null);$out_arr__44057__auto__$jscomp$254$$.push((0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_dashboard_grid__grid-row",children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($dragging_QMARK_$jscomp$10$$))?(0,$APP.$rumext$v2$jsx$$)("li",
{className:"main_ui_dashboard_grid__grid-item"}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$25$$,$item$jscomp$134$$){$out_arr__44057__auto____$1$jscomp$25$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_item_STAR_$$,{file:$item$jscomp$134$$,origin:$origin$jscomp$75$$,selectedFiles:$selected_files$jscomp$2$$,canEdit:$can_edit$jscomp$12$$,canRestore:$can_restore$jscomp$7$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$134$$)??
"")));return $out_arr__44057__auto____$1$jscomp$25$$},[],$p__80583_slice$jscomp$1$$)]},""+($index$jscomp$575$$??"")));return $out_arr__44057__auto__$jscomp$254$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$core$partition_all$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$8$$,$limit$jscomp$8$$,$files$jscomp$38$$))):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$placeholder$empty_grid_placeholder_STAR_$$,{limit:$limit$jscomp$8$$,canEdit:$can_edit$jscomp$12$$,
createFn:$create_fn$jscomp$1$$,origin:$origin$jscomp$75$$,projectId:$project_id$jscomp$43$$,teamId:$team_id$jscomp$145$$,onFinishImport:$on_finish_import$jscomp$6_project$jscomp$29$$}),onDrop:$on_drop$jscomp$21$$,onDragOver:$on_drag_over$jscomp$4$$,dragabble:""+($can_edit$jscomp$12$$??""),ref:$node_ref$jscomp$7_props_80574$$,onScroll:$on_scroll$jscomp$1$$})};
$app$main$ui$dashboard$grid$line_grid_row$$=function($files$jscomp$39_map__80588_props_80587$$){$files$jscomp$39_map__80588_props_80587$$=$APP.$rumext$v2$util$wrap_props$$($files$jscomp$39_map__80588_props_80587$$);var $limit__$1$jscomp$2_map__80588__$1$$=$APP.$cljs$core$__destructure_map$$($files$jscomp$39_map__80588_props_80587$$);$files$jscomp$39_map__80588_props_80587$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($limit__$1$jscomp$2_map__80588__$1$$,$APP.$cljs$cst$1901$files$$);var $selected_files$jscomp$3$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($limit__$1$jscomp$2_map__80588__$1$$,$APP.$cljs$cst$2143$selected_files$$),$dragging_QMARK_$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($limit__$1$jscomp$2_map__80588__$1$$,$APP.$cljs$cst$5116$dragging_QMARK_$$),$limit$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($limit__$1$jscomp$2_map__80588__$1$$,$cljs$cst$6051$limit$$),$can_edit$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($limit__$1$jscomp$2_map__80588__$1$$,
$APP.$cljs$cst$1580$can_edit$$),$can_restore$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($limit__$1$jscomp$2_map__80588__$1$$,$cljs$cst$6052$can_restore$$);$limit__$1$jscomp$2_map__80588__$1$$=$APP.$cljs$core$truth_$$($dragging_QMARK_$jscomp$11$$)?$limit$jscomp$9$$-1:$limit$jscomp$9$$;return(0,$APP.$rumext$v2$jsxs$$)("ul",{style:{gridTemplateColumns:"repeat("+($limit$jscomp$9$$??"")+", 1fr)"},className:"main_ui_dashboard_grid__grid-row main_ui_dashboard_grid__no-wrap",children:[$APP.$cljs$core$truth_$$($dragging_QMARK_$jscomp$11$$)?
(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_dashboard_grid__grid-item main_ui_dashboard_grid__dragged"}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$255$$,$item$jscomp$135$$){$out_arr__44057__auto__$jscomp$255$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_item_STAR_$$,{id:$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$135$$),file:$item$jscomp$135$$,selectedFiles:$selected_files$jscomp$3$$,
canEdit:$can_edit$jscomp$13$$,canRestore:$can_restore$jscomp$8$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$135$$)??"")));return $out_arr__44057__auto__$jscomp$255$$},[],$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$($limit__$1$jscomp$2_map__80588__$1$$,$files$jscomp$39_map__80588_props_80587$$))]})};
$app$main$ui$dashboard$grid$line_grid$$=function($files$jscomp$40_map__80599_props_80594$$){$files$jscomp$40_map__80599_props_80594$$=$APP.$rumext$v2$util$wrap_props$$($files$jscomp$40_map__80599_props_80594$$);var $can_restore$jscomp$9_map__80599__$1$$=$APP.$cljs$core$__destructure_map$$($files$jscomp$40_map__80599_props_80594$$),$on_finish_import$jscomp$7_project$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_restore$jscomp$9_map__80599__$1$$,$APP.$cljs$cst$2192$project$$),
$on_drag_enter$jscomp$11_team$jscomp$54$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_restore$jscomp$9_map__80599__$1$$,$APP.$cljs$cst$2449$team$$);$files$jscomp$40_map__80599_props_80594$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_restore$jscomp$9_map__80599__$1$$,$APP.$cljs$cst$1901$files$$);var $limit$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_restore$jscomp$9_map__80599__$1$$,$cljs$cst$6051$limit$$),$create_fn$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_restore$jscomp$9_map__80599__$1$$,
$cljs$cst$6053$create_fn$$),$can_edit$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_restore$jscomp$9_map__80599__$1$$,$APP.$cljs$cst$1580$can_edit$$);$can_restore$jscomp$9_map__80599__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_restore$jscomp$9_map__80599__$1$$,$cljs$cst$6052$can_restore$$);var $dragging_QMARK_$jscomp$12$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$project_id$jscomp$44$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($on_finish_import$jscomp$7_project$jscomp$30$$),
$team_id$jscomp$146$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($on_drag_enter$jscomp$11_team$jscomp$54$$),$selected_files$jscomp$4$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_files$$),$selected_project$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_project$$);$on_finish_import$jscomp$7_project$jscomp$30$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$146$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$146$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))});var $import_files$jscomp$1$$=$APP.$app$main$ui$dashboard$import$0$use_import_file$$($project_id$jscomp$44$$,$on_finish_import$jscomp$7_project$jscomp$30$$);$on_drag_enter$jscomp$11_team$jscomp$54$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_project$jscomp$1$$),$APP.$rumext$v2$adapt$$($can_edit$jscomp$14$$)],function($e$jscomp$402$$){if($APP.$cljs$core$truth_$$($can_edit$jscomp$14$$)){if($APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$402$$,
"penpot/files")))return $APP.$app$util$dom$prevent_default$$($e$jscomp$402$$),$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1284$$=$APP.$app$util$dom$dnd$from_child_QMARK_$$($e$jscomp$402$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1284$$)?$or__5025__auto__$jscomp$1284$$:$e$jscomp$402$$.relatedTarget==null}())?null:$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected_project$jscomp$1$$,$project_id$jscomp$44$$)?$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$12$$,
!0):null;if($APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1285$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$402$$,"Files");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1285$$)?$or__5025__auto__$jscomp$1285$$:$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$402$$,"application/x-moz-file")}()))return $APP.$app$util$dom$prevent_default$$($e$jscomp$402$$),$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$12$$,!0)}return null});var $on_drag_over$jscomp$5$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$403$$){var $JSCompiler_inline_result$jscomp$1949_or__5025__auto__$jscomp$inline_9191_or__5025__auto____$1$jscomp$inline_9192$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$403$$,"penpot/files");$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1949_or__5025__auto__$jscomp$inline_9191_or__5025__auto____$1$jscomp$inline_9192$$)||($JSCompiler_inline_result$jscomp$1949_or__5025__auto__$jscomp$inline_9191_or__5025__auto____$1$jscomp$inline_9192$$=
$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$403$$,"Files"),$JSCompiler_inline_result$jscomp$1949_or__5025__auto__$jscomp$inline_9191_or__5025__auto____$1$jscomp$inline_9192$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1949_or__5025__auto__$jscomp$inline_9191_or__5025__auto____$1$jscomp$inline_9192$$)?$JSCompiler_inline_result$jscomp$1949_or__5025__auto__$jscomp$inline_9191_or__5025__auto____$1$jscomp$inline_9192$$:$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$403$$,"application/x-moz-file"));
return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1949_or__5025__auto__$jscomp$inline_9191_or__5025__auto____$1$jscomp$inline_9192$$)?$APP.$app$util$dom$prevent_default$$($e$jscomp$403$$):null}),$on_drag_leave$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$404$$){return $APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$from_child_QMARK_$$($e$jscomp$404$$))?null:$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$12$$,!1)}),$on_drop_success$jscomp$1$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$146$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($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.success-move-file")),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$146$$),
$app$main$data$dashboard$clear_selected_files$$()]))}),$on_drop$jscomp$22$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($files$jscomp$40_map__80599_props_80594$$),$APP.$rumext$v2$adapt$$($selected_files$jscomp$4$$),$APP.$rumext$v2$adapt$$($can_edit$jscomp$14$$)],function($G__80607_data$jscomp$492_e$jscomp$405$$){if($APP.$cljs$core$truth_$$($can_edit$jscomp$14$$)){if($APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($G__80607_data$jscomp$492_e$jscomp$405$$,
"penpot/files"))){if($APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$12$$,!1),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected_project$jscomp$1$$,$project_id$jscomp$44$$))return $G__80607_data$jscomp$492_e$jscomp$405$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$keys$$($selected_files$jscomp$4$$)),$APP.$cljs$cst$2141$project_id$$,
$project_id$jscomp$44$$],null),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$dashboard$move_files$$($APP.$cljs$core$with_meta$$($G__80607_data$jscomp$492_e$jscomp$405$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2445$on_success$$,$on_drop_success$jscomp$1$$],null))))}else{var $JSCompiler_inline_result$jscomp$1950_or__5025__auto__$jscomp$inline_9194$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($G__80607_data$jscomp$492_e$jscomp$405$$,"Files");
$JSCompiler_inline_result$jscomp$1950_or__5025__auto__$jscomp$inline_9194$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1950_or__5025__auto__$jscomp$inline_9194$$)?$JSCompiler_inline_result$jscomp$1950_or__5025__auto__$jscomp$inline_9194$$:$APP.$app$util$dom$dnd$has_type_QMARK_$$($G__80607_data$jscomp$492_e$jscomp$405$$,"application/x-moz-file");if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1950_or__5025__auto__$jscomp$inline_9194$$))return $APP.$app$util$dom$prevent_default$$($G__80607_data$jscomp$492_e$jscomp$405$$),
$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$12$$,!1),$G__80607_data$jscomp$492_e$jscomp$405$$=$G__80607_data$jscomp$492_e$jscomp$405$$.dataTransfer.files,$import_files$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$import_files$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__80607_data$jscomp$492_e$jscomp$405$$):$import_files$jscomp$1$$($G__80607_data$jscomp$492_e$jscomp$405$$)}return null}return $APP.$app$util$dom$prevent_default$$($G__80607_data$jscomp$492_e$jscomp$405$$)});return(0,$APP.$rumext$v2$jsx$$)("div",
{dragabble:""+($can_edit$jscomp$14$$??""),onDragEnter:$on_drag_enter$jscomp$11_team$jscomp$54$$,onDragOver:$on_drag_over$jscomp$5$$,onDragLeave:$on_drag_leave$jscomp$9$$,onDrop:$on_drop$jscomp$22$$,className:"main_ui_dashboard_grid__dashboard-grid",children:$files$jscomp$40_map__80599_props_80594$$==null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$placeholder$loading_placeholder_STAR_$$,{}):$APP.$cljs$core$seq$$($files$jscomp$40_map__80599_props_80594$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$line_grid_row$$,
{files:$files$jscomp$40_map__80599_props_80594$$,"team-id":$team_id$jscomp$146$$,"selected-files":$selected_files$jscomp$4$$,"dragging?":$APP.$cljs$core$_deref$$($dragging_QMARK_$jscomp$12$$),"can-edit":$can_edit$jscomp$14$$,limit:$limit$jscomp$10$$,"can-restore":$can_restore$jscomp$9_map__80599__$1$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$placeholder$empty_grid_placeholder_STAR_$$,{isDragging:$APP.$cljs$core$_deref$$($dragging_QMARK_$jscomp$12$$),limit:$limit$jscomp$10$$,canEdit:$can_edit$jscomp$14$$,
createFn:$create_fn$jscomp$2$$,projectId:$project_id$jscomp$44$$,teamId:$team_id$jscomp$146$$,onFinishImport:$on_finish_import$jscomp$7_project$jscomp$30$$})})};
$app$main$ui$dashboard$deleted$on_restore_project$$=function($project$jscomp$31$$){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,6,[$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$("dashboard.restore-project-confirmation.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.restore-project-confirmation.description",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$31$$)])),$APP.$cljs$cst$2434$accept_style$$,$APP.$cljs$cst$2435$primary$$,$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.continue"),$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$restore_project_immediately$$($project$jscomp$31$$))}],
null)))};
$app$main$ui$dashboard$deleted$on_delete_project$$=function($project$jscomp$32$$){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$("dashboard.delete-forever-confirmation.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.delete-project-forever-confirmation.description",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$32$$)])),
$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.delete-forever-confirmation.title"),$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$delete_project_immediately$$($project$jscomp$32$$))}],null)))};
$app$main$ui$dashboard$deleted$header_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)("header",{"data-testid":"dashboard-header",className:"main_ui_dashboard_deleted__dashboard-header",children:(0,$APP.$rumext$v2$jsx$$)("div",{id:"dashboard-deleted-title",className:"main_ui_dashboard_deleted__dashboard-title",children:(0,$APP.$rumext$v2$jsx$$)("h1",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.projects-title")})})})};
$app$main$ui$dashboard$deleted$project_context_menu_STAR_$$=function($props_80700_top__$1$jscomp$7$$){var $show$jscomp$8$$=$props_80700_top__$1$jscomp$7$$.show,$left$jscomp$39_left__$1$jscomp$8$$=$props_80700_top__$1$jscomp$7$$.left,$on_close$jscomp$42$$=$props_80700_top__$1$jscomp$7$$.onClose,$options$jscomp$628_project$jscomp$33$$=$props_80700_top__$1$jscomp$7$$.project;$props_80700_top__$1$jscomp$7$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($props_80700_top__$1$jscomp$7$$.top,
0);$left$jscomp$39_left__$1$jscomp$8$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($left$jscomp$39_left__$1$jscomp$8$$,0);var $on_restore_project$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($options$jscomp$628_project$jscomp$33$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$dashboard$deleted$on_restore_project$$,$options$jscomp$628_project$jscomp$33$$)),$on_delete_project$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($options$jscomp$628_project$jscomp$33$$)],
$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$dashboard$deleted$on_delete_project$$,$options$jscomp$628_project$jscomp$33$$));$options$jscomp$628_project$jscomp$33$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_restore_project$$),$APP.$rumext$v2$adapt$$($on_delete_project$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,2,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$("dashboard.restore-project-button"),$APP.$cljs$cst$266$id$$,"project-restore",$APP.$cljs$cst$2359$handler$$,$on_restore_project$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.delete-project-button"),$APP.$cljs$cst$266$id$$,"project-delete",$APP.$cljs$cst$2359$handler$$,$on_delete_project$$],null)],null)});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$context_menu_a11y$context_menu_STAR_$$,
{onClose:$on_close$jscomp$42$$,show:$show$jscomp$8$$,fixed:$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_80700_top__$1$jscomp$7$$,0)||$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($left$jscomp$39_left__$1$jscomp$8$$,0),minWidth:!0,top:$props_80700_top__$1$jscomp$7$$,left:$left$jscomp$39_left__$1$jscomp$8$$,options:$options$jscomp$628_project$jscomp$33$$})};
$app$main$ui$dashboard$deleted$deleted_project_item_STAR_$$=function($project_files_props_80703$$){var $project$jscomp$34$$=$project_files_props_80703$$.project;$project_files_props_80703$$=$APP.$cljs$core$filterv$$(function($p1__80702_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80702_SHARP_$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$34$$))},$project_files_props_80703$$.files);
var $empty_QMARK_$jscomp$3$$=$APP.$cljs$core$empty_QMARK_$$($project_files_props_80703$$),$selected_files$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_files$$),$dstate$jscomp$1_rowref$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$dashboard_local$$),$edit_id$jscomp$3$$=$APP.$cljs$cst$4747$project_for_edit$$.$cljs$core$IFn$_invoke$arity$1$($dstate$jscomp$1_rowref$jscomp$1$$),$local$jscomp$30$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$4738$menu_open$$,!1,$APP.$cljs$cst$4739$menu_pos$$,null,$APP.$cljs$cst$2161$edition$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$34$$),$edit_id$jscomp$3$$)],null)}),$limit$jscomp$11_vec__80704$$=$app$main$ui$hooks$use_dynamic_grid_item_width$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$dstate$jscomp$1_rowref$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$11_vec__80704$$,
0,null);$limit$jscomp$11_vec__80704$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$11_vec__80704$$,1,null);var $on_menu_click$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$){$APP.$app$util$dom$prevent_default$$($JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$);var $client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$=$APP.$app$util$dom$get_client_position$$($JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$);
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$)==null&&$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$)==null?($client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$)),$JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$=
$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$),$client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$=$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$),$JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$,
$JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$)):$JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$=$client_position$jscomp$1_points$jscomp$inline_9196_x$jscomp$inline_9198$$;return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($local$jscomp$30$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4739$menu_pos$$,$JSCompiler_temp$jscomp$1951_event$jscomp$673_y$jscomp$inline_9197$$]))}),
$on_menu_close$jscomp$4$$=$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$30$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!1)}),$handle_menu_click$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_menu_click$jscomp$6$$)],function($event$jscomp$674$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$674$$))?
($APP.$app$util$dom$stop_propagation$$($event$jscomp$674$$),$on_menu_click$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$674$$):$on_menu_click$jscomp$6$$($event$jscomp$674$$)):null});return(0,$APP.$rumext$v2$jsxs$$)("article",{className:"main_ui_dashboard_deleted__dashboard-project-row",children:[(0,$APP.$rumext$v2$jsx$$)("header",{className:"main_ui_dashboard_deleted__project",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_deleted__project-name-wrapper",
children:[(0,$APP.$rumext$v2$jsx$$)("h2",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$34$$),className:"main_ui_dashboard_deleted__project-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$34$$)}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$2523$deleted_at$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$34$$))?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_deleted__info-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_dashboard_deleted__project-actions",children:(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_menu_click$jscomp$6$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.options"),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.options"),"data-testid":"project-options",onKeyDown:$handle_menu_click$$,className:"main_ui_dashboard_deleted__options-btn",children:$app$main$ui$dashboard$deleted$menu_icon$$})}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$4738$menu_open$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$30$$)))?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$deleted$project_context_menu_STAR_$$,{project:$project$jscomp$34$$,show:$APP.$cljs$cst$4738$menu_open$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$30$$)),left:24+$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4739$menu_pos$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$30$$))),top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4739$menu_pos$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$30$$))),
onClose:$on_menu_close$jscomp$4$$}):null]}):null]})}),(0,$APP.$rumext$v2$jsx$$)("div",{ref:$dstate$jscomp$1_rowref$jscomp$1$$,className:"main_ui_dashboard_deleted__grid-container",children:$empty_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$empty_placeholder$empty_placeholder_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-files-title"),className:"main_ui_dashboard_deleted__placeholder-placement",type:1,subtitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-files-subtitle")}):
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_STAR_$$,{project:$project$jscomp$34$$,files:$project_files_props_80703$$,origin:$APP.$cljs$cst$2498$deleted$$,canEdit:!1,canRestore:!0,limit:$limit$jscomp$11_vec__80704$$,selectedFiles:$selected_files$jscomp$5$$})})]})};
$app$main$ui$dashboard$deleted$menu_STAR_$$=function($props_80713_section$jscomp$37$$){var $team_id$jscomp$147$$=$props_80713_section$jscomp$37$$.teamId;$props_80713_section$jscomp$37$$=$props_80713_section$jscomp$37$$.section;var $on_recent_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$147$$)],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$147$$])))}),$on_deleted_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$147$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$common$go_to_dashboard_deleted$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$147$$])))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_deleted__nav",
children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_deleted__nav-inside",children:[(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"recent-tab",onClick:$on_recent_click$$,className:"main_ui_dashboard_deleted__nav-option "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_80713_section$jscomp$37$$,$APP.$cljs$cst$2479$dashboard_recent$$)?"main_ui_dashboard_deleted__selected":""),children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.recent")}),(0,$APP.$rumext$v2$jsx$$)("div",
{variant:"ghost",type:"button","data-testid":"deleted-tab",onClick:$on_deleted_click$$,className:"main_ui_dashboard_deleted__nav-option "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_80713_section$jscomp$37$$,$APP.$cljs$cst$2493$dashboard_deleted$$)?"main_ui_dashboard_deleted__selected":""),children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.deleted")})]})})};
$app$main$ui$dashboard$deleted$deleted_section_STAR_$$=function($projects__$1_props_80721$$){var $projects$jscomp$9$$=$projects__$1_props_80721$$.projects,$team$jscomp$55$$=$projects__$1_props_80721$$.team,$deleted_map$$=$APP.$rumext$v2$deref$$($app$main$ui$dashboard$deleted$ref_COLON_deleted_files$$);$projects__$1_props_80721$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($projects$jscomp$9$$),$APP.$rumext$v2$adapt$$($deleted_map$$)],function(){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$reverse$$($APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1721$modified_at$$,
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($project$jscomp$35$$){return $APP.$cljs$core$truth_$$($deleted_map$$)?$APP.$cljs$core$some$$(function($p1__80717_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$35$$),$APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80717_SHARP_$$))},$APP.$cljs$core$vals$$($deleted_map$$)):null},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($project$jscomp$36$$){var $or__5025__auto__$jscomp$1288$$=
$APP.$cljs$cst$2523$deleted_at$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$36$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1288$$)?$or__5025__auto__$jscomp$1288$$:$APP.$cljs$core$truth_$$($deleted_map$$)?$APP.$cljs$core$some$$(function($p1__80716_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$36$$),$APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80716_SHARP_$$))},
$APP.$cljs$core$vals$$($deleted_map$$)):null},$projects$jscomp$9$$)))))});var $team_id$jscomp$148$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$55$$,$APP.$cljs$cst$266$id$$),$deletion_days$$=function(){var $canceled_QMARK__sub_status_subscription$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$55$$,$APP.$cljs$cst$3182$subscription$$),$sub_type$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($canceled_QMARK__sub_status_subscription$jscomp$9$$,
$APP.$cljs$cst$139$type$$);$canceled_QMARK__sub_status_subscription$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($canceled_QMARK__sub_status_subscription$jscomp$9$$,$APP.$cljs$cst$109$status$$);$canceled_QMARK__sub_status_subscription$jscomp$9$$=$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,["unpaid",null,"canceled",null],null),null),$canceled_QMARK__sub_status_subscription$jscomp$9$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("unlimited",
$sub_type$$)&&!$canceled_QMARK__sub_status_subscription$jscomp$9$$?30:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("enterprise",$sub_type$$)&&!$canceled_QMARK__sub_status_subscription$jscomp$9$$?90:7}(),$on_delete_all$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$148$$),$APP.$rumext$v2$adapt$$($deleted_map$$)],function(){var $temp__5825__auto__$jscomp$425$$=$APP.$cljs$core$not_empty$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$key$$),$deleted_map$$));return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$425$$)?$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$("dashboard.delete-forever-confirmation.title"),
$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.delete-all-forever-confirmation.description",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$count$$($temp__5825__auto__$jscomp$425$$)])),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.delete-forever-confirmation.title"),$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$delete_files_immediately$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$148$$,$APP.$cljs$cst$1707$ids$$,$temp__5825__auto__$jscomp$425$$],null)))}],null))):null}),$on_restore_all$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$148$$),$APP.$rumext$v2$adapt$$($deleted_map$$)],function(){var $temp__5825__auto__$jscomp$426$$=$APP.$cljs$core$not_empty$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$key$$),
$deleted_map$$));return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$426$$)?$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,6,[$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$("dashboard.restore-all-confirmation.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.restore-all-confirmation.description",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$count$$($temp__5825__auto__$jscomp$426$$)])),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.continue"),$APP.$cljs$cst$2434$accept_style$$,$APP.$cljs$cst$2435$primary$$,$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$restore_files_immediately$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$148$$,$APP.$cljs$cst$1707$ids$$,$temp__5825__auto__$jscomp$426$$],null)))}],null))):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$148$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$dashboard$fetch_projects$$($team_id$jscomp$148$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$fetch_deleted_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$148$$),
$app$main$data$dashboard$clear_selected_files$$()]))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$deleted$header_STAR_$$,{team:$team$jscomp$55$$}),(0,$APP.$rumext$v2$jsx$$)("section",{"data-testid":"deleted-page-section",className:"main_ui_dashboard_deleted__dashboard-container main_ui_dashboard_deleted__no-bg",children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_deleted__no-bg",
children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$deleted$menu_STAR_$$,{teamId:$team_id$jscomp$148$$,section:$APP.$cljs$cst$2493$dashboard_deleted$$}),$APP.$cljs$core$seq$$($projects__$1_props_80721$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_deleted__deleted-info-content",children:[(0,$APP.$rumext$v2$jsxs$$)("p",{className:"main_ui_dashboard_deleted__deleted-info",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.trash-info-text-part1"),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_deleted__info-text-highlight",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.trash-info-text-part2",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$deletion_days$$]))}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.trash-info-text-part3"),(0,$APP.$rumext$v2$jsx$$)("br",{}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.trash-info-text-part4")]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_deleted__deleted-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"ghost",type:"button",onClick:$on_restore_all$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.restore-all-deleted-button")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"destructive",type:"button",icon:"delete",onClick:$on_delete_all$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.clear-trash-button")})]})]}),
$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$256$$,$p__80722$$){var $map__80723__$1$$=$APP.$cljs$core$__destructure_map$$($p__80722$$),$id$jscomp$1002$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80723__$1$$,$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$256$$.push(function(){var $files$jscomp$42$$=$APP.$cljs$core$truth_$$($deleted_map$$)?$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$1721$modified_at$$,
function($p1__80720_SHARP_$$,$p2__80719_SHARP_$$){return $APP.$cljs$core$compare$$($p2__80719_SHARP_$$,$p1__80720_SHARP_$$)},$APP.$cljs$core$filterv$$(function($p1__80718_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$1002$$,$APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80718_SHARP_$$))},$APP.$cljs$core$vals$$($deleted_map$$))):null;return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$deleted$deleted_project_item_STAR_$$,{project:$map__80723__$1$$,
files:$files$jscomp$42$$},$id$jscomp$1002$$)}());return $out_arr__44057__auto__$jscomp$256$$},[],$projects__$1_props_80721$$)]}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_deleted__deleted-info-content",children:(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_dashboard_deleted__deleted-info",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.deleted.empty-state-description")})})]})})})]})};
$app$main$ui$dashboard$pin_button$pin_button_STAR_$$=function($props_80501_props__$1$jscomp$105$$){var $aria_label$jscomp$11_aria_label__$1$jscomp$1$$=$props_80501_props__$1$jscomp$105$$["aria-label"],$class$__$1$jscomp$12_is_pinned$jscomp$2$$=$props_80501_props__$1$jscomp$105$$.isPinned,$class$$jscomp$80$$=$props_80501_props__$1$jscomp$105$$.className;$aria_label$jscomp$11_aria_label__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($aria_label$jscomp$11_aria_label__$1$jscomp$1$$)?$aria_label$jscomp$11_aria_label__$1$jscomp$1$$:
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.pin-unpin");$class$__$1$jscomp$12_is_pinned$jscomp$2$$=""+(($APP.$cljs$core$truth_$$($class$$jscomp$80$$)?$class$$jscomp$80$$:"")??"")+" main_ui_dashboard_pin_button__button "+($APP.$cljs$core$truth_$$($class$__$1$jscomp$12_is_pinned$jscomp$2$$)?"main_ui_dashboard_pin_button__button-active":"");$props_80501_props__$1$jscomp$105$$=$APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$unset_BANG_$$($APP.$app$util$object$clone$$($props_80501_props__$1$jscomp$105$$),
"isPinned"),"className",$class$__$1$jscomp$12_is_pinned$jscomp$2$$),"aria-label",$aria_label$jscomp$11_aria_label__$1$jscomp$1$$);return(0,$APP.$rumext$v2$create_element$$)("button",$props_80501_props__$1$jscomp$105$$,$app$main$ui$dashboard$pin_button$pin_icon$$)};
$app$main$ui$dashboard$files$header_STAR_$$=function($on_menu_close$jscomp$5_props_80697$$){var $can_edit$jscomp$15$$=$on_menu_close$jscomp$5_props_80697$$.canEdit,$project$jscomp$38$$=$on_menu_close$jscomp$5_props_80697$$.project,$create_fn$jscomp$3$$=$on_menu_close$jscomp$5_props_80697$$.createFn,$project_id$jscomp$45$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$38$$),$local$jscomp$31$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$4738$menu_open$$,!1,$APP.$cljs$cst$2161$edition$$,!1],null)),$on_create_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($create_fn$jscomp$3$$)],function($event$jscomp$675$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$675$$);return $create_fn$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$create_fn$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$("dashboard:header"):$create_fn$jscomp$3$$("dashboard:header")}),$on_menu_click$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$676$$){var $position$jscomp$233$$=
$APP.$app$util$dom$get_client_position$$($event$jscomp$676$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$676$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($local$jscomp$31$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4739$menu_pos$$,$position$jscomp$233$$]))});$on_menu_close$jscomp$5_props_80697$$=$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$31$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!1)});var $on_edit$jscomp$15$$=$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$($local$jscomp$31$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2161$edition$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4738$menu_open$$,!1]))}),$toggle_pin$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project$jscomp$38$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$dashboard$toggle_project_pin$$($project$jscomp$38$$))}),$on_import$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id$jscomp$45$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$project$fetch_files$cljs$0core$0IFn$0_invoke$0arity$01$$($project_id$jscomp$45$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))});
return(0,$APP.$rumext$v2$jsxs$$)("header",{"data-testid":"dashboard-header",className:"main_ui_dashboard_files__dashboard-header",children:[$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$38$$))?(0,$APP.$rumext$v2$jsx$$)("div",{id:"dashboard-drafts-title",className:"main_ui_dashboard_files__dashboard-title",children:(0,$APP.$rumext$v2$jsx$$)("h1",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.drafts")})}):$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$963$$=
$APP.$cljs$cst$2161$edition$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$31$$));return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$963$$)?$can_edit$jscomp$15$$:$and__5023__auto__$jscomp$963$$}())?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$dashboard$inline_edition$inline_edition$$,{content:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$38$$),"on-end":function($name$jscomp$473_name__$1$jscomp$26$$){$name$jscomp$473_name__$1$jscomp$26$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$473_name__$1$jscomp$26$$);
$APP.$cuerdas$core$empty_QMARK_$$($name$jscomp$473_name__$1$jscomp$26$$)||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($APP.$app$main$data$dashboard$rename_project$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($project$jscomp$38$$,$APP.$cljs$cst$723$name$$,$name$jscomp$473_name__$1$jscomp$26$$)),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"project"],null)));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($local$jscomp$31$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2161$edition$$,!1)},"max-length":250}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_files__dashboard-title",children:(0,$APP.$rumext$v2$jsx$$)("h1",{onDoubleClick:$on_edit$jscomp$15$$,"data-testid":"project-title",id:$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$38$$),children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$38$$)})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_files__dashboard-header-actions",
children:[$can_edit$jscomp$15$$?(0,$APP.$rumext$v2$jsx$$)("a",{tabIndex:"0",onClick:$on_create_click$$,"data-testid":"new-file",onKeyDown:function($event$jscomp$677$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$677$$))?$on_create_click$$.$cljs$core$IFn$_invoke$arity$1$?$on_create_click$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$677$$):$on_create_click$$($event$jscomp$677$$):null},className:"main_ui_dashboard_files__btn-secondary main_ui_dashboard_files__btn-small main_ui_dashboard_files__new-file",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.new-file")}):null,$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$38$$))?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$pin_button$pin_button_STAR_$$,{tabIndex:0,isPinned:$APP.$cljs$cst$4714$is_pinned$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$38$$),onClick:$toggle_pin$jscomp$1$$,onKeyDown:function($event$jscomp$678$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$678$$))?
$toggle_pin$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_pin$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$678$$):$toggle_pin$jscomp$1$$($event$jscomp$678$$):null}}),$can_edit$jscomp$15$$?(0,$APP.$rumext$v2$jsx$$)("div",{tabIndex:"0",onClick:$on_menu_click$jscomp$7$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.options"),onKeyDown:function($event$jscomp$679$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$679$$))?
$on_menu_click$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$679$$):$on_menu_click$jscomp$7$$($event$jscomp$679$$):null},className:"main_ui_dashboard_files__icon",children:$app$main$ui$dashboard$files$menu_icon$$}):null,$can_edit$jscomp$15$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$dashboard$project_menu$project_menu_STAR_$$,{project:$project$jscomp$38$$,show:$APP.$cljs$cst$4738$menu_open$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$31$$)),
left:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4739$menu_pos$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$31$$)))-180,top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4739$menu_pos$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$31$$))),onEdit:$on_edit$jscomp$15$$,onClose:$on_menu_close$jscomp$5_props_80697$$,onImport:$on_import$jscomp$2$$}):null]})]})};
$app$main$ui$dashboard$files$files_section_STAR_$$=function($props_80708_team$jscomp$56$$){var $project$jscomp$39$$=$props_80708_team$jscomp$56$$.project;$props_80708_team$jscomp$56$$=$props_80708_team$jscomp$56$$.team;var $files$jscomp$43$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$),$project_id$jscomp$46$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($project$jscomp$39$$,$APP.$cljs$cst$266$id$$),$files__$1$jscomp$6$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id$jscomp$46$$),
$APP.$rumext$v2$adapt$$($files$jscomp$43$$)],function(){return $APP.$cljs$core$reverse$$($APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1721$modified_at$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__80707_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($project_id$jscomp$46$$,$APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80707_SHARP_$$))},$APP.$cljs$core$vals$$($files$jscomp$43$$))))}),$can_edit_QMARK_$jscomp$15$$=
$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($props_80708_team$jscomp$56$$)),$project_id__$1$jscomp$4$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$39$$),$is_draft_proyect$$=$APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$39$$),$limit$jscomp$12_vec__80710$$=$app$main$ui$hooks$use_dynamic_grid_item_width$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$rowref$jscomp$2$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$12_vec__80710$$,0,null);$limit$jscomp$12_vec__80710$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$12_vec__80710$$,1,null);var $file_count$jscomp$5$$=function(){var $or__5025__auto__$jscomp$1291$$=$APP.$cljs$core$count$$($files__$1$jscomp$6$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1291$$)?$or__5025__auto__$jscomp$1291$$:0}(),$empty_state_viewer$$=$APP.$cljs$core$not$$($can_edit_QMARK_$jscomp$15$$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$file_count$jscomp$5$$),$selected_files$jscomp$6$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_files$$),$on_file_created$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($file_data$jscomp$116_page_id$jscomp$435$$){var $file_id$jscomp$416$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file_data$jscomp$116_page_id$jscomp$435$$);$file_data$jscomp$116_page_id$jscomp$435$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($file_data$jscomp$116_page_id$jscomp$435$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2190$pages$$,0],null));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_workspace$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$416$$,$APP.$cljs$cst$2028$page_id$$,$file_data$jscomp$116_page_id$jscomp$435$$])))}),$create_file$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project$jscomp$39$$)],function($origin$jscomp$76$$){var $mdata$jscomp$25$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2445$on_success$$,$on_file_created$$],null),$params$jscomp$432$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2141$project_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$39$$)],null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($app$main$data$dashboard$create_file$$($APP.$cljs$core$with_meta$$($params$jscomp$432$$,
$mdata$jscomp$25$$)),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,$origin$jscomp$76$$,$cljs$cst$6054$has_files$$,$file_count$jscomp$5$$>0],null)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project$jscomp$39$$)],function(){if($APP.$cljs$core$truth_$$($project$jscomp$39$$)){var $pname$jscomp$26$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$39$$))?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.drafts"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$39$$);return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.dashboard.files",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$pname$jscomp$26$$])))}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id__$1$jscomp$4$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$project$fetch_files$cljs$0core$0IFn$0_invoke$0arity$01$$($project_id__$1$jscomp$4$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))});$APP.$app$main$ui$hooks$use_shortcuts$$($cljs$cst$6055$app_DOT_main_DOT_ui_DOT_dashboard_DOT_files_SLASH_dashboard$$,$APP.$app$main$data$dashboard$shortcuts$shortcuts_drafts_libraries$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$files$header_STAR_$$,{team:$props_80708_team$jscomp$56$$,canEdit:$can_edit_QMARK_$jscomp$15$$,project:$project$jscomp$39$$,createFn:$create_file$$}),(0,$APP.$rumext$v2$jsx$$)("section",{ref:$rowref$jscomp$2$$,className:"main_ui_dashboard_files__dashboard-container main_ui_dashboard_files__no-bg",children:$empty_state_viewer$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$empty_placeholder$empty_placeholder_STAR_$$,{title:$APP.$cljs$core$truth_$$($is_draft_proyect$$)?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-drafts-title"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-files-title"),className:"main_ui_dashboard_files__placeholder-placement",type:1,subtitle:$APP.$cljs$core$truth_$$($is_draft_proyect$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-drafts-subtitle"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-files-subtitle")}):
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_STAR_$$,{project:$project$jscomp$39$$,files:$files__$1$jscomp$6$$,selectedFiles:$selected_files$jscomp$6$$,canEdit:$can_edit_QMARK_$jscomp$15$$,origin:$APP.$cljs$cst$1901$files$$,createFn:$create_file$$,limit:$limit$jscomp$12_vec__80710$$})})]})};
$app$main$ui$dashboard$fonts$use_page_title$$=function($team$jscomp$57$$,$section$jscomp$38$$){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$57$$)],function(){if($APP.$cljs$core$truth_$$($team$jscomp$57$$)){var $tname$jscomp$1$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$57$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$57$$),
$G__80502__$1$$=$section$jscomp$38$$ instanceof $APP.$cljs$core$Keyword$$?$section$jscomp$38$$.$fqn$:null;switch($G__80502__$1$$){case "fonts":return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.dashboard.fonts",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$tname$jscomp$1$$])));case "providers":return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.dashboard.font-providers",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$tname$jscomp$1$$])));default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__80502__$1$$)].join(""));}}else return null})};$app$main$ui$dashboard$fonts$bad_font_family_tmp_QMARK_$$=function($font$jscomp$54$$){return $APP.$cljs$core$contains_QMARK_$$($font$jscomp$54$$,$cljs$cst$6056$font_family_tmp$$)&&$APP.$cuerdas$core$blank_QMARK_$$($cljs$cst$6056$font_family_tmp$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$54$$))};
$app$main$ui$dashboard$fonts$font_variant_display_name_STAR_$$=function($props_80506_variant$jscomp$25$$){$props_80506_variant$jscomp$25$$=$props_80506_variant$jscomp$25$$.variant;return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$common$media$font_weight__GT_name$$($APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($props_80506_variant$jscomp$25$$))}),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("normal",
$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($props_80506_variant$jscomp$25$$))?(0,$APP.$rumext$v2$jsxs$$)("span",{children:[" ",$APP.$cuerdas$core$capital$$($APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($props_80506_variant$jscomp$25$$))]}):null]})};
$app$main$ui$dashboard$fonts$uploaded_fonts_STAR_$$=function($disable_upload_all_QMARK__props_80509$$){var $installed_fonts$jscomp$2$$=$disable_upload_all_QMARK__props_80509$$.installedFonts,$on_upload_all_team$jscomp$59$$=$disable_upload_all_QMARK__props_80509$$.team,$fonts_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$fonts$jscomp$39$$=$APP.$cljs$core$_deref$$($fonts_STAR_$$),$font_vals$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts$jscomp$39$$)],
function(){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$val$$),$fonts$jscomp$39$$))}),$team_id$jscomp$149$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($on_upload_all_team$jscomp$59$$),$input_ref$jscomp$11$$=(0,$APP.$rumext$v2$use_ref$$)(),$uploading_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$EMPTY$$),
$uploading$$=$APP.$cljs$core$_deref$$($uploading_STAR_$$);$disable_upload_all_QMARK__props_80509$$=$APP.$cljs$core$some$$($app$main$ui$dashboard$fonts$bad_font_family_tmp_QMARK_$$,$fonts$jscomp$39$$);var $problematic_fonts_QMARK_$$=$APP.$cljs$core$some$$($APP.$cljs$cst$3373$height_warning_QMARK_$$,$APP.$cljs$core$vals$$($fonts$jscomp$39$$)),$on_click$jscomp$62$$=$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$11$$))}),
$on_selected$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$149$$),$APP.$rumext$v2$adapt$$($installed_fonts$jscomp$2$$)],function($blobs$jscomp$4$$){return $APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$(function($result$jscomp$366$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($fonts_STAR_$$,$app$main$data$fonts$merge_and_group_fonts$$,$installed_fonts$jscomp$2$$,$result$jscomp$366$$)},function($error$jscomp$147$$){return console.error("error",
$error$jscomp$147$$)},$app$main$data$fonts$process_upload$$($blobs$jscomp$4$$,$team_id$jscomp$149$$))}),$on_upload_STAR_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p__80520$$){var $map__80521__$1$$=$APP.$cljs$core$__destructure_map$$($p__80520$$),$id$jscomp$1003$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80521__$1$$,$APP.$cljs$cst$266$id$$);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($uploading_STAR_$$,$APP.$cljs$core$conj$$,$id$jscomp$1003$$);
return $APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$(function($font$jscomp$55$$){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($fonts_STAR_$$,$APP.$cljs$core$dissoc$$,$id$jscomp$1003$$);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($uploading_STAR_$$,$APP.$cljs$core$disj$$,$id$jscomp$1003$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$fonts$add_font$$($font$jscomp$55$$))},function($error$jscomp$148$$){$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$variadic$("errors.bad-font",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$first$$($APP.$cljs$cst$3374$names$$.$cljs$core$IFn$_invoke$arity$1$($map__80521__$1$$))]))));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($fonts_STAR_$$,$APP.$cljs$core$dissoc$$,$id$jscomp$1003$$);return console.log("error",$error$jscomp$148$$)},$APP.$beicon$v2$core$delay_at_least$$(2E3,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$6057$create_font_variant$$,$map__80521__$1$$)))}),
$on_upload$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts$jscomp$39$$),$APP.$rumext$v2$adapt$$($on_upload_STAR_$$)],function($event$jscomp$680_id$jscomp$1004_item$jscomp$137$$){$event$jscomp$680_id$jscomp$1004_item$jscomp$137$$=$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$680_id$jscomp$1004_item$jscomp$137$$),"id"));$event$jscomp$680_id$jscomp$1004_item$jscomp$137$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fonts$jscomp$39$$,
$event$jscomp$680_id$jscomp$1004_item$jscomp$137$$);return $on_upload_STAR_$$.$cljs$core$IFn$_invoke$arity$1$?$on_upload_STAR_$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$680_id$jscomp$1004_item$jscomp$137$$):$on_upload_STAR_$$($event$jscomp$680_id$jscomp$1004_item$jscomp$137$$)}),$on_blur_name$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($installed_fonts$jscomp$2$$)],function($event$jscomp$681_id$jscomp$1005$$){var $name$jscomp$474_target$jscomp$165$$=
$APP.$app$util$dom$get_current_target$$($event$jscomp$681_id$jscomp$1005$$);$event$jscomp$681_id$jscomp$1005$$=$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($name$jscomp$474_target$jscomp$165$$,"id"));$name$jscomp$474_target$jscomp$165$$=$APP.$app$util$dom$get_value$$($name$jscomp$474_target$jscomp$165$$);return $APP.$cuerdas$core$blank_QMARK_$$($name$jscomp$474_target$jscomp$165$$)?null:$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($fonts_STAR_$$,$app$main$data$fonts$rename_and_regroup$$,
$event$jscomp$681_id$jscomp$1005$$,$name$jscomp$474_target$jscomp$165$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$installed_fonts$jscomp$2$$]))}),$on_change_name$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$682_target$jscomp$166$$){$event$jscomp$682_target$jscomp$166$$=$APP.$app$util$dom$get_current_target$$($event$jscomp$682_target$jscomp$166$$);var $id$jscomp$1006$$=$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($event$jscomp$682_target$jscomp$166$$,
"id"));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($fonts_STAR_$$,$APP.$cljs$core$update$$,$id$jscomp$1006$$,$APP.$cljs$core$assoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$6056$font_family_tmp$$,$APP.$app$util$dom$get_value$$($event$jscomp$682_target$jscomp$166$$)]))}),$on_delete$jscomp$18$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_upload_all_team$jscomp$59$$)],function($event$jscomp$683_id$jscomp$1007$$){$event$jscomp$683_id$jscomp$1007$$=
$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$683_id$jscomp$1007$$),"id"));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($fonts_STAR_$$,$APP.$cljs$core$dissoc$$,$event$jscomp$683_id$jscomp$1007$$)});$on_upload_all_team$jscomp$59$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font_vals$$)],function(){return $APP.$cljs$core$run_BANG_$$($on_upload_STAR_$$,$font_vals$$)});
var $on_dismis_all$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts$jscomp$39$$)],function(){return $APP.$cljs$core$run_BANG_$$(function($p1__80508_SHARP_$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($fonts_STAR_$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80508_SHARP_$$))},$APP.$cljs$core$vals$$($fonts$jscomp$39$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__dashboard-fonts-upload",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__dashboard-fonts-hero",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__desc",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.upload-custom-fonts")}),$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.hero-text1")}),(0,$APP.$rumext$v2$jsxs$$)("button",
{onClick:$on_click$jscomp$62$$,tabIndex:"0",className:"main_ui_dashboard_fonts__btn-primary",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.add-custom-font")}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$file_uploader$file_uploader$$,{"input-id":"font-upload",accept:$app$main$ui$dashboard$fonts$accept_font_types$$,multi:!0,ref:$input_ref$jscomp$11$$,"on-selected":$on_selected$jscomp$2$$})]}),$APP.$cljs$core$truth_$$($APP.$app$config$terms_of_service_uri$$)?
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$notifications$context_notification$context_notification$$,{content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.fonts.hero-text2",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$config$terms_of_service_uri$$])),level:$APP.$cljs$cst$205$default$$,"is-html":!0}):null,$APP.$cljs$core$truth_$$($problematic_fonts_QMARK_$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$notifications$context_notification$context_notification$$,
{content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.warning-text"),level:$APP.$cljs$cst$2300$warning$$,"is-html":!0}):null]})}),(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$seq$$($fonts$jscomp$39$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__font-item main_ui_dashboard_fonts__table-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.fonts.fonts-added",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($APP.$cljs$core$count$$($fonts$jscomp$39$$))]))}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__options",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_upload_all_team$jscomp$59$$,"data-testid":"upload-all",disabled:$disable_upload_all_QMARK__props_80509$$,className:"main_ui_dashboard_fonts__btn-primary "+($APP.$cljs$core$truth_$$($disable_upload_all_QMARK__props_80509$$)?
"main_ui_dashboard_fonts__disabled":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.upload-all")})}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_dismis_all$$,"data-testid":"dismiss-all",className:"main_ui_dashboard_fonts__btn-secondary",children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.dismiss-all")})})]})]}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$257$$,
$p__80532$$){var $map__80533__$1$$=$APP.$cljs$core$__destructure_map$$($p__80532$$),$id$jscomp$1008$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80533__$1$$,$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$257$$.push(function(){var $uploading_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($uploading$$,$id$jscomp$1008$$),$disable_upload_QMARK_$$=$uploading_QMARK_$$||$app$main$ui$dashboard$fonts$bad_font_family_tmp_QMARK_$$($map__80533__$1$$);return(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_dashboard_fonts__font-item main_ui_dashboard_fonts__table-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__family",children:(0,$APP.$rumext$v2$jsx$$)("input",{type:"text","data-id":""+($id$jscomp$1008$$??""),onBlur:$on_blur_name$$,onChange:$on_change_name$$,defaultValue:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($map__80533__$1$$)})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__variants",
children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_fonts__label",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$font_variant_display_name_STAR_$$,{variant:$map__80533__$1$$})})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__filenames",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$26$$,$item__$1$jscomp$3$$){$out_arr__44057__auto____$1$jscomp$26$$.push((0,$APP.$rumext$v2$jsx$$)("span",
{children:$item__$1$jscomp$3$$},"name-"+($item__$1$jscomp$3$$??"")));return $out_arr__44057__auto____$1$jscomp$26$$},[],$APP.$cljs$cst$3374$names$$.$cljs$core$IFn$_invoke$arity$1$($map__80533__$1$$))}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__options",children:[$APP.$cljs$core$truth_$$($APP.$cljs$cst$3373$height_warning_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($map__80533__$1$$))?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_fonts__icon main_ui_dashboard_fonts__failure",
children:$APP.$app$main$ui$icons$msg_neutral$$}):null,(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_upload$$,"data-id":""+($id$jscomp$1008$$??""),disabled:$disable_upload_QMARK_$$,className:"main_ui_dashboard_fonts__btn-primary main_ui_dashboard_fonts__upload-button "+($disable_upload_QMARK_$$?"main_ui_dashboard_fonts__disabled":""),children:$uploading_QMARK_$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.uploading"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.upload")}),
(0,$APP.$rumext$v2$jsx$$)("span",{"data-id":""+($id$jscomp$1008$$??""),onClick:$on_delete$jscomp$18$$,className:"main_ui_dashboard_fonts__icon main_ui_dashboard_fonts__close",children:$APP.$app$main$ui$icons$close$$})]})]},""+($id$jscomp$1008$$??""))}());return $out_arr__44057__auto__$jscomp$257$$},[],$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1742$font_family$$,$font_vals$$))]})]})};
$app$main$ui$dashboard$fonts$installed_font_context_menu$$=function($options$jscomp$629_props_80542$$){var $is_open$jscomp$10$$=$options$jscomp$629_props_80542$$["is-open"],$on_close$jscomp$43$$=$options$jscomp$629_props_80542$$["on-close"],$on_delete$jscomp$19$$=$options$jscomp$629_props_80542$$["on-delete"],$on_edit$jscomp$16$$=$options$jscomp$629_props_80542$$["on-edit"];$options$jscomp$629_props_80542$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_edit$jscomp$16$$),
$APP.$rumext$v2$adapt$$($on_delete$jscomp$19$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,2,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.edit"),$APP.$cljs$cst$266$id$$,"font-edit",$APP.$cljs$cst$2359$handler$$,$on_edit$jscomp$16$$],null),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$$,"font-delete",$APP.$cljs$cst$2359$handler$$,$on_delete$jscomp$19$$],null)],null)});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$context_menu_a11y$context_menu_STAR_$$,{onClose:$on_close$jscomp$43$$,show:$is_open$jscomp$10$$,fixed:!1,minWidth:!0,top:-15,left:-115,options:$options$jscomp$629_props_80542$$})};
$app$main$ui$dashboard$fonts$installed_fonts_STAR_$$=function($on_change$jscomp$99_props_80565$$){function $matches_QMARK_$jscomp$3$$($p1__80564_SHARP_$$){return $APP.$cuerdas$core$includes_QMARK_$$($APP.$cuerdas$core$lower$$($APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($p1__80564_SHARP_$$)),$APP.$cljs$core$_deref$$($sterm$$))}var $fonts$jscomp$40$$=$on_change$jscomp$99_props_80565$$.fonts,$can_edit$jscomp$17$$=$on_change$jscomp$99_props_80565$$.canEdit,$sterm$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$("");
$on_change$jscomp$99_props_80565$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$687_val$jscomp$230$$){$event$jscomp$687_val$jscomp$230$$=(0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$687_val$jscomp$230$$);return $APP.$cljs$core$reset_BANG_$$($sterm$$,$APP.$cuerdas$core$lower$$($event$jscomp$687_val$jscomp$230$$))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__dashboard-installed-fonts",children:$APP.$cljs$core$seq$$($fonts$jscomp$40$$)?
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("h3",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.installed-fonts")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__installed-fonts-header",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__family",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.font-family")}),(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__variants",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.font-variants")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__search-input",children:(0,$APP.$rumext$v2$jsx$$)("input",{placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.search-font"),defaultValue:"",onChange:$on_change$jscomp$99_props_80565$$})})]}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$259$$,
$p__80566_variants$jscomp$11$$){var $font_id$jscomp$36$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__80566_variants$jscomp$11$$,0,null);$p__80566_variants$jscomp$11$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__80566_variants$jscomp$11$$,1,null);$out_arr__44057__auto__$jscomp$259$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$installed_font$$,{"font-id":$font_id$jscomp$36$$,"can-edit":$can_edit$jscomp$17$$,variants:$p__80566_variants$jscomp$11$$},""+
($font_id$jscomp$36$$??"")+"-installed"));return $out_arr__44057__auto__$jscomp$259$$},[],$APP.$cljs$core$group_by$$($APP.$cljs$cst$1741$font_id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($matches_QMARK_$jscomp$3$$,$APP.$cljs$core$vals$$($fonts$jscomp$40$$))))]}):$fonts$jscomp$40$$==null?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__fonts-placeholder",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__icon",children:$APP.$app$main$ui$icons$loader$$}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.loading-fonts")})]}):$can_edit$jscomp$17$$?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__fonts-placeholder",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__icon",children:$APP.$app$main$ui$icons$text$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.empty-placeholder")})]}):
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$empty_placeholder$empty_placeholder_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.empty-placeholder-viewer"),subtitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.empty-placeholder-viewer-sub"),type:2})})};
$app$main$ui$dashboard$fonts$fonts_page_STAR_$$=function($props_80570_team$jscomp$60$$){$props_80570_team$jscomp$60$$=$props_80570_team$jscomp$60$$.team;var $fonts$jscomp$41$$=$APP.$rumext$v2$deref$$($app$main$ui$dashboard$fonts$ref_COLON_fonts$$),$can_edit$jscomp$18_permissions$jscomp$39$$=$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($props_80570_team$jscomp$60$$);$can_edit$jscomp$18_permissions$jscomp$39$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($can_edit$jscomp$18_permissions$jscomp$39$$);
return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$header_STAR_$$,{team:$props_80570_team$jscomp$60$$,section:$APP.$cljs$cst$2987$fonts$$}),(0,$APP.$rumext$v2$jsxs$$)("section",{className:"main_ui_dashboard_fonts__dashboard-container main_ui_dashboard_fonts__dashboard-fonts",children:[$can_edit$jscomp$18_permissions$jscomp$39$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$uploaded_fonts_STAR_$$,{team:$props_80570_team$jscomp$60$$,
installedFonts:$fonts$jscomp$41$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$installed_fonts_STAR_$$,{team:$props_80570_team$jscomp$60$$,fonts:$fonts$jscomp$41$$,canEdit:$can_edit$jscomp$18_permissions$jscomp$39$$})]})]})};
$app$main$ui$dashboard$fonts$font_providers_page_STAR_$$=function($props_80571$$){return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$header_STAR_$$,{team:$props_80571$$.team,section:$cljs$cst$6058$providers$$}),(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_dashboard_fonts__dashboard-container",children:(0,$APP.$rumext$v2$jsx$$)("span",{children:"font providers"})})]})};
$app$main$ui$dashboard$libraries$libraries_page_STAR_$$=function($can_edit$jscomp$19_props_80633$$){var $default_project$jscomp$1$$=$can_edit$jscomp$19_props_80633$$.defaultProject,$team$jscomp$62$$=$can_edit$jscomp$19_props_80633$$.team,$files$jscomp$45$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$shared_files$$),$team_id$jscomp$150$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$62$$,$APP.$cljs$cst$266$id$$);$can_edit$jscomp$19_props_80633$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$62$$));
var $files__$1$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($files$jscomp$45$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$150$$)],function(){return $APP.$cljs$core$reverse$$($APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1721$modified_at$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__80632_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($team_id$jscomp$150$$,$APP.$cljs$cst$1912$team_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80632_SHARP_$$))},
$APP.$cljs$core$vals$$($files$jscomp$45$$))))}),$selected_files$jscomp$7$$=$APP.$rumext$v2$deref$$($app$main$ui$dashboard$libraries$ref_COLON_selected_files$$),$limit$jscomp$13_vec__80638$$=$app$main$ui$hooks$use_dynamic_grid_item_width$cljs$0core$0IFn$0_invoke$0arity$01$$(350),$rowref$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$13_vec__80638$$,0,null);$limit$jscomp$13_vec__80638$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$13_vec__80638$$,
1,null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$62$$)],function(){var $tname$jscomp$2$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$62$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$62$$);return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.dashboard.shared-libraries",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$tname$jscomp$2$$])))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$150$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$team$fetch_shared_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$150$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))});
$APP.$app$main$ui$hooks$use_shortcuts$$($cljs$cst$6059$app_DOT_main_DOT_ui_DOT_dashboard_DOT_libraries_SLASH_dashboard$$,$APP.$app$main$data$dashboard$shortcuts$shortcuts_drafts_libraries$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("header",{"data-testid":"dashboard-header",className:"main_ui_dashboard_libraries__dashboard-header",children:(0,$APP.$rumext$v2$jsx$$)("div",{id:"dashboard-libraries-title",className:"main_ui_dashboard_libraries__dashboard-title",
children:(0,$APP.$rumext$v2$jsx$$)("h1",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.libraries-title")})})}),(0,$APP.$rumext$v2$jsx$$)("section",{ref:$rowref$jscomp$3$$,className:"main_ui_dashboard_libraries__dashboard-container main_ui_dashboard_libraries__no-bg main_ui_dashboard_libraries__dashboard-shared",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_STAR_$$,{files:$files__$1$jscomp$7$$,selectedFiles:$selected_files$jscomp$7$$,project:$default_project$jscomp$1$$,
origin:$APP.$cljs$cst$4984$libraries$$,limit:$limit$jscomp$13_vec__80638$$,canEdit:$can_edit$jscomp$19_props_80633$$})})]})};
$app$main$ui$dashboard$projects$project_item_STAR_$$=function($files$jscomp$46_props_80735$$){var $is_first$$=$files$jscomp$46_props_80735$$.isFirst,$can_edit$jscomp$21$$=$files$jscomp$46_props_80735$$.canEdit,$project$jscomp$40$$=$files$jscomp$46_props_80735$$.project,$team$jscomp$64$$=$files$jscomp$46_props_80735$$.team;$files$jscomp$46_props_80735$$=$files$jscomp$46_props_80735$$.files;var $project_id$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($project$jscomp$40$$,$APP.$cljs$cst$266$id$$),
$team_id$jscomp$151$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$64$$,$APP.$cljs$cst$266$id$$),$file_count$jscomp$6$$=function(){var $or__5025__auto__$jscomp$1292$$=$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1292$$)?$or__5025__auto__$jscomp$1292$$:0}(),$is_draft_QMARK_$$=$APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$),$empty_QMARK_$jscomp$4$$=
$APP.$cljs$core$not$$($can_edit$jscomp$21$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$file_count$jscomp$6$$),$dstate$jscomp$2_edit_id$jscomp$4_rowref$jscomp$4$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$dashboard_local$$);$dstate$jscomp$2_edit_id$jscomp$4_rowref$jscomp$4$$=$APP.$cljs$cst$4747$project_for_edit$$.$cljs$core$IFn$_invoke$arity$1$($dstate$jscomp$2_edit_id$jscomp$4_rowref$jscomp$4$$);var $local$jscomp$32$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$4738$menu_open$$,!1,$APP.$cljs$cst$4739$menu_pos$$,null,$APP.$cljs$cst$2161$edition$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$),$dstate$jscomp$2_edit_id$jscomp$4_rowref$jscomp$4$$)],null)),$limit$jscomp$14_vec__80737$$=$app$main$ui$hooks$use_dynamic_grid_item_width$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$dstate$jscomp$2_edit_id$jscomp$4_rowref$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$14_vec__80737$$,
0,null);$limit$jscomp$14_vec__80737$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$14_vec__80737$$,1,null);var $on_nav$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id$jscomp$47$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_dashboard_files$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2141$project_id$$,
$project_id$jscomp$47$$])))}),$toggle_pin$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project$jscomp$40$$)],function($event$jscomp$689$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$689$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$dashboard$toggle_project_pin$$($project$jscomp$40$$))}),$on_menu_click$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$){$APP.$app$util$dom$prevent_default$$($JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$);
var $client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$=$APP.$app$util$dom$get_client_position$$($JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$);$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$)==null&&$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$)==null?($client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$=
$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$)),$JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$=$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$),$client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$=$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$),
$JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$,$JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$)):$JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$=$client_position$jscomp$2_points$jscomp$inline_9200_x$jscomp$inline_9202$$;return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($local$jscomp$32$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4739$menu_pos$$,$JSCompiler_temp$jscomp$1952_event$jscomp$690_y$jscomp$inline_9201$$]))}),$on_menu_close$jscomp$7$$=$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$32$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4738$menu_open$$,!1)}),$on_edit_open$jscomp$1$$=$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$32$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2161$edition$$,!0)}),$on_edit$jscomp$18$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project$jscomp$40$$)],function($name$jscomp$476_name__$1$jscomp$27$$){$name$jscomp$476_name__$1$jscomp$27$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$476_name__$1$jscomp$27$$);$APP.$cuerdas$core$empty_QMARK_$$($name$jscomp$476_name__$1$jscomp$27$$)||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($APP.$app$main$data$dashboard$rename_project$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($project$jscomp$40$$,
$APP.$cljs$cst$723$name$$,$name$jscomp$476_name__$1$jscomp$27$$)),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard"],null)));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($local$jscomp$32$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2161$edition$$,!1)}),$on_file_created$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$1011_p__80746$$){var $data$jscomp$493_map__80747__$1_page_id$jscomp$436$$=
$APP.$cljs$core$__destructure_map$$($id$jscomp$1011_p__80746$$);$id$jscomp$1011_p__80746$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$493_map__80747__$1_page_id$jscomp$436$$,$APP.$cljs$cst$266$id$$);$data$jscomp$493_map__80747__$1_page_id$jscomp$436$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$493_map__80747__$1_page_id$jscomp$436$$,$APP.$cljs$cst$142$data$$);$data$jscomp$493_map__80747__$1_page_id$jscomp$436$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$493_map__80747__$1_page_id$jscomp$436$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2190$pages$$,0],null));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_workspace$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1628$file_id$$,$id$jscomp$1011_p__80746$$,$APP.$cljs$cst$2028$page_id$$,$data$jscomp$493_map__80747__$1_page_id$jscomp$436$$])))}),
$create_file$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id$jscomp$47$$),$APP.$rumext$v2$adapt$$($on_file_created$jscomp$1$$)],function($origin$jscomp$77$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($app$main$data$dashboard$create_file$$($APP.$cljs$core$with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2141$project_id$$,$project_id$jscomp$47$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2445$on_success$$,$on_file_created$jscomp$1$$],null))),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,$origin$jscomp$77$$,$cljs$cst$6054$has_files$$,$file_count$jscomp$6$$>0],null)))}),$on_create_click$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($create_file$jscomp$1$$)],function(){return $create_file$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$create_file$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$("dashboard:grid-header-plus-button"):
$create_file$jscomp$1$$("dashboard:grid-header-plus-button")}),$on_import$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id$jscomp$47$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$151$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$project$fetch_files$cljs$0core$0IFn$0_invoke$0arity$01$$($project_id$jscomp$47$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$151$$),
$app$main$data$dashboard$fetch_projects$$($team_id$jscomp$151$$),$app$main$data$dashboard$clear_selected_files$$()]))}),$handle_create_click$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_create_click$jscomp$1$$)],function($event$jscomp$691$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$691$$))?$on_create_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_create_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$691$$):
$on_create_click$jscomp$1$$($event$jscomp$691$$):null}),$handle_menu_click$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_menu_click$jscomp$8$$)],function($event$jscomp$692$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$692$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$692$$),$on_menu_click$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$692$$):
$on_menu_click$jscomp$8$$($event$jscomp$692$$)):null}),$title_width$$=100/$limit$jscomp$14_vec__80737$$;return(0,$APP.$rumext$v2$jsxs$$)("article",{className:"main_ui_dashboard_projects__dashboard-project-row "+($APP.$cljs$core$truth_$$($is_first$$)?"main_ui_dashboard_projects__first":""),children:[(0,$APP.$rumext$v2$jsx$$)("header",{className:"main_ui_dashboard_projects__project",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_projects__project-name-wrapper",children:[$APP.$cljs$core$truth_$$($APP.$cljs$cst$2161$edition$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$32$$)))?
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$dashboard$inline_edition$inline_edition$$,{content:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$),"on-end":$on_edit$jscomp$18$$,"max-length":250}):(0,$APP.$rumext$v2$jsx$$)("h2",{onClick:$on_nav$$,style:{maxWidth:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($title_width$$),"%"].join("")},title:$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.drafts"):
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$),onContextMenu:$APP.$cljs$core$truth_$$($can_edit$jscomp$21$$)?$on_menu_click$jscomp$8$$:null,className:"main_ui_dashboard_projects__project-name",children:$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.drafts"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$)}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_projects__info-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_projects__info",children:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("labels.num-of-files",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($file_count$jscomp$6$$)])))}),function(){var $time$jscomp$9$$=
$APP.$app$common$time$timeago$$($APP.$cljs$cst$1721$modified_at$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$));return(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_projects__recent-files-row-title-info",children:[", ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($time$jscomp$9$$)].join("")})}()]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_projects__project-actions "+($APP.$cljs$core$truth_$$($APP.$cljs$cst$4714$is_pinned$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$))?
"main_ui_dashboard_projects__pinned-project":""),children:[$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$))?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$pin_button$pin_button_STAR_$$,{className:"main_ui_dashboard_projects__pin-button",isPinned:$APP.$cljs$cst$4714$is_pinned$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$40$$),onClick:$toggle_pin$jscomp$2$$,tabIndex:0}),$can_edit$jscomp$21$$?(0,$APP.$rumext$v2$jsx$$)("button",
{onClick:$on_create_click$jscomp$1$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.new-file"),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.new-file"),"data-testid":"project-new-file",onKeyDown:$handle_create_click$$,className:"main_ui_dashboard_projects__add-file-btn",children:$app$main$ui$dashboard$projects$add_icon$$}):null,$can_edit$jscomp$21$$?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_menu_click$jscomp$8$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.options"),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.options"),"data-testid":"project-options",onKeyDown:$handle_menu_click$jscomp$1$$,className:"main_ui_dashboard_projects__options-btn",children:$app$main$ui$dashboard$projects$menu_icon$$}):null]}),$can_edit$jscomp$21$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$dashboard$project_menu$project_menu_STAR_$$,{project:$project$jscomp$40$$,show:$APP.$cljs$cst$4738$menu_open$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$32$$)),
left:24+$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4739$menu_pos$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$32$$))),top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4739$menu_pos$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($local$jscomp$32$$))),onEdit:$on_edit_open$jscomp$1$$,onClose:$on_menu_close$jscomp$7$$,onImport:$on_import$jscomp$3$$}):null]})]})}),(0,$APP.$rumext$v2$jsx$$)("div",{ref:$dstate$jscomp$2_edit_id$jscomp$4_rowref$jscomp$4$$,
className:"main_ui_dashboard_projects__grid-container",children:$empty_QMARK_$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$empty_placeholder$empty_placeholder_STAR_$$,{title:$is_draft_QMARK_$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-drafts-title"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-files-title"),className:"main_ui_dashboard_projects__placeholder-placement",type:1,subtitle:$is_draft_QMARK_$$?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-drafts-subtitle"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.empty-placeholder-files-subtitle")}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$line_grid$$,{project:$project$jscomp$40$$,team:$team$jscomp$64$$,files:$files$jscomp$46_props_80735$$,"create-fn":$create_file$jscomp$1$$,"can-edit":$can_edit$jscomp$21$$,limit:$limit$jscomp$14_vec__80737$$})}),$limit$jscomp$14_vec__80737$$>
0&&$file_count$jscomp$6$$>$limit$jscomp$14_vec__80737$$?(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$on_nav$$,tabIndex:"0",onKeyDown:function($event$jscomp$693$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$693$$))?$on_nav$$.$cljs$core$IFn$_invoke$arity$0$?$on_nav$$.$cljs$core$IFn$_invoke$arity$0$():$on_nav$$():null},className:"main_ui_dashboard_projects__show-more",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_projects__placeholder-label",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.show-all-files")}),$app$main$ui$dashboard$projects$show_more_icon$$]}):null]})};
$app$main$ui$dashboard$projects$projects_section_STAR_$$=function($props_80760_show_deleted_QMARK_$$){var $on_close$jscomp$45_profile$jscomp$69$$=$props_80760_show_deleted_QMARK_$$.profile,$projects$jscomp$10$$=$props_80760_show_deleted_QMARK_$$.projects,$team$jscomp$65$$=$props_80760_show_deleted_QMARK_$$.team,$team_id$jscomp$152$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$65$$,$APP.$cljs$cst$266$id$$),$recent_map$$=$APP.$rumext$v2$deref$$($app$main$ui$dashboard$projects$ref_COLON_recent_files$$),
$permisions$$=$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$65$$),$can_edit$jscomp$22$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permisions$$),$can_invite$jscomp$3$$=function(){var $or__5025__auto__$jscomp$1293$$=$APP.$cljs$cst$1582$is_owner$$.$cljs$core$IFn$_invoke$arity$1$($permisions$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1293$$)?$or__5025__auto__$jscomp$1293$$:$APP.$cljs$cst$1581$is_admin$$.$cljs$core$IFn$_invoke$arity$1$($permisions$$)}(),
$show_team_hero_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$storage$global$$,$cljs$cst$6060$app_DOT_main_DOT_ui_DOT_dashboard_DOT_projects_SLASH_show_team_hero$$,!0)}),$show_team_hero_QMARK_$$=$APP.$cljs$core$_deref$$($show_team_hero_STAR_$$),$my_penpot_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2453$default_team_id$$.$cljs$core$IFn$_invoke$arity$1$($on_close$jscomp$45_profile$jscomp$69$$),
$team_id$jscomp$152$$),$default_team_QMARK_$$=$APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$65$$);$props_80760_show_deleted_QMARK_$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permisions$$);var $projects__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($projects$jscomp$10$$)],function(){return $APP.$cljs$core$reverse$$($APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1721$modified_at$$,
$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2523$deleted_at$$,$projects$jscomp$10$$)))});$on_close$jscomp$45_profile$jscomp$69$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($show_team_hero_STAR_$$,!1);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($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,
2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"dont-show-team-up-hero",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard"],null)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($show_team_hero_QMARK_$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$global$$,$APP.$cljs$core$assoc$$,$cljs$cst$6060$app_DOT_main_DOT_ui_DOT_dashboard_DOT_projects_SLASH_show_team_hero$$,
$show_team_hero_QMARK_$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$65$$)],function(){var $tname$jscomp$3$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$65$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$65$$);return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.dashboard.projects",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$tname$jscomp$3$$])))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$152$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$152$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))});
$APP.$app$main$ui$hooks$use_shortcuts$$($cljs$cst$6061$app_DOT_main_DOT_ui_DOT_dashboard_DOT_projects_SLASH_dashboard$$,$APP.$app$main$data$dashboard$shortcuts$shortcuts_projects$$);return $APP.$cljs$core$seq$$($projects__$1$jscomp$1$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$projects$header_STAR_$$,{canEdit:$can_edit$jscomp$22$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_projects__projects-container",children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($show_team_hero_QMARK_$$)?$APP.$cljs$core$truth_$$($can_invite$jscomp$3$$)?$APP.$cljs$core$not$$($default_team_QMARK_$$):$can_invite$jscomp$3$$:$show_team_hero_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$projects$team_hero_STAR_$$,{team:$team$jscomp$65$$,onClose:$on_close$jscomp$45_profile$jscomp$69$$}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_projects__dashboard-container main_ui_dashboard_projects__no-bg main_ui_dashboard_projects__dashboard-projects "+
($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$965_and__5023__auto____$1$jscomp$161$$=!$my_penpot_QMARK_$$;return $and__5023__auto__$jscomp$965_and__5023__auto____$1$jscomp$161$$?($and__5023__auto__$jscomp$965_and__5023__auto____$1$jscomp$161$$=$APP.$cljs$core$not$$($default_team_QMARK_$$))?$APP.$cljs$core$truth_$$($show_team_hero_QMARK_$$)?$can_invite$jscomp$3$$:$show_team_hero_QMARK_$$:$and__5023__auto__$jscomp$965_and__5023__auto____$1$jscomp$161$$:$and__5023__auto__$jscomp$965_and__5023__auto____$1$jscomp$161$$}())?
"main_ui_dashboard_projects__with-team-hero":""),children:[$APP.$cljs$core$truth_$$($props_80760_show_deleted_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$deleted$menu_STAR_$$,{teamId:$team_id$jscomp$152$$,section:$APP.$cljs$cst$2479$dashboard_recent$$}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$260$$,$p__80774$$){var $map__80775__$1$$=$APP.$cljs$core$__destructure_map$$($p__80774$$),$id$jscomp$1012$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80775__$1$$,
$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$260$$.push(function(){var $files$jscomp$47$$=$APP.$cljs$core$truth_$$($recent_map$$)?$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$1721$modified_at$$,function($p1__80758_SHARP_$$,$p2__80757_SHARP_$$){return $APP.$cljs$core$compare$$($p2__80757_SHARP_$$,$p1__80758_SHARP_$$)},$APP.$cljs$core$filterv$$(function($p1__80756_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$1012$$,$APP.$cljs$cst$2141$project_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80756_SHARP_$$))},
$APP.$cljs$core$vals$$($recent_map$$))):null;return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$projects$project_item_STAR_$$,{project:$map__80775__$1$$,team:$team$jscomp$65$$,files:$files$jscomp$47$$,canEdit:$can_edit$jscomp$22$$,isFirst:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__80775__$1$$,$APP.$cljs$core$first$$($projects__$1$jscomp$1$$))},$id$jscomp$1012$$)}());return $out_arr__44057__auto__$jscomp$260$$},[],$projects__$1$jscomp$1$$)]})]})})]}):null};
$app$main$ui$dashboard$search$search_page_STAR_$$=function($props_80619_result$jscomp$367$$){var $team$jscomp$66$$=$props_80619_result$jscomp$367$$.team,$search_term__$1$jscomp$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($props_80619_result$jscomp$367$$.searchTerm,"");$props_80619_result$jscomp$367$$=$APP.$rumext$v2$deref$$($app$main$ui$dashboard$search$ref_COLON_search_result$$);var $selected$jscomp$206$$=$APP.$rumext$v2$deref$$($app$main$ui$dashboard$search$ref_COLON_selected$$),
$limit$jscomp$15_vec__80624$$=$app$main$ui$hooks$use_dynamic_grid_item_width$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$rowref$jscomp$5$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$15_vec__80624$$,0,null);$limit$jscomp$15_vec__80624$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($limit$jscomp$15_vec__80624$$,1,null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$66$$)],function(){if($APP.$cljs$core$truth_$$($team$jscomp$66$$)){var $tname$jscomp$4$$=
$APP.$cljs$core$truth_$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$66$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.your-penpot"):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$66$$);return $APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.dashboard.search",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$tname$jscomp$4$$])))}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($search_term__$1$jscomp$1$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$dashboard$search$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2473$search_term$$,$search_term__$1$jscomp$1$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$clear_selected_files$$()]))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("header",{"data-testid":"dashboard-header",
className:"main_ui_dashboard_search__dashboard-header",children:(0,$APP.$rumext$v2$jsx$$)("div",{id:"dashboard-search-title",className:"main_ui_dashboard_search__dashboard-title",children:(0,$APP.$rumext$v2$jsx$$)("h1",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.title-search")})})}),(0,$APP.$rumext$v2$jsx$$)("section",{ref:$rowref$jscomp$5$$,className:"main_ui_dashboard_search__dashboard-container main_ui_dashboard_search__search main_ui_dashboard_search__no-bg",
children:$APP.$cljs$core$empty_QMARK_$$($search_term__$1$jscomp$1$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_search__grid-empty-placeholder main_ui_dashboard_search__search",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_search__icon",children:$APP.$app$main$ui$icons$search$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_search__text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.type-something")})]}):
$props_80619_result$jscomp$367$$==null?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_search__grid-empty-placeholder main_ui_dashboard_search__search",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_search__icon",children:$APP.$app$main$ui$icons$search$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_search__text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.searching-for",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$search_term__$1$jscomp$1$$]))})]}):
$APP.$cljs$core$empty_QMARK_$$($props_80619_result$jscomp$367$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_search__grid-empty-placeholder main_ui_dashboard_search__search",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_search__icon",children:$APP.$app$main$ui$icons$search$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_search__text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("dashboard.no-matches-for",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$search_term__$1$jscomp$1$$]))})]}):
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$grid$grid_STAR_$$,{files:$props_80619_result$jscomp$367$$,selectedFiles:$selected$jscomp$206$$,origin:$cljs$cst$6044$search$$,limit:$limit$jscomp$15_vec__80624$$})})]})};
$app$main$ui$dashboard$templates$import_template_BANG_$$=function($template$jscomp$9$$,$team_id$jscomp$153$$,$project_id$jscomp$48$$,$default_project_id$jscomp$1$$,$section$jscomp$40$$){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,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,
"import-template-launch",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard",$APP.$cljs$cst$2360$template$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($template$jscomp$9$$),$APP.$cljs$cst$1355$section$$,$section$jscomp$40$$],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$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$5099$import$$,
$APP.$cljs$cst$2141$project_id$$,$APP.$cljs$core$truth_$$($project_id$jscomp$48$$)?$project_id$jscomp$48$$:$default_project_id$jscomp$1$$,$APP.$cljs$cst$1901$files$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$cst$2360$template$$,$template$jscomp$9$$,$APP.$cljs$cst$5101$on_finish_import$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$153$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$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,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"import-template-finish",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard",$APP.$cljs$cst$2360$template$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($template$jscomp$9$$),$APP.$cljs$cst$1355$section$$,$section$jscomp$40$$],null)),$project_id$jscomp$48$$!=null?null:$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$153$$,$APP.$cljs$cst$2141$project_id$$,$default_project_id$jscomp$1$$]))]))}],null))]))};
$app$main$ui$dashboard$templates$title_STAR_$$=function($on_key_down$jscomp$23_props_80699$$){var $is_collapsed$jscomp$1$$=$on_key_down$jscomp$23_props_80699$$.isCollapsed,$on_click$jscomp$64$$=$on_key_down$jscomp$23_props_80699$$.onClick;$on_key_down$jscomp$23_props_80699$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_click$jscomp$64$$)],function($event$jscomp$694$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$694$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$694$$),
$APP.$app$util$dom$prevent_default$$($event$jscomp$694$$),$on_click$jscomp$64$$.$cljs$core$IFn$_invoke$arity$1$?$on_click$jscomp$64$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$694$$):$on_click$jscomp$64$$($event$jscomp$694$$)):null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_templates__title",children:(0,$APP.$rumext$v2$jsxs$$)("button",{tabIndex:"0",onClick:$on_click$jscomp$64$$,onKeyDown:$on_key_down$jscomp$23_props_80699$$,className:"main_ui_dashboard_templates__title-btn",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_templates__title-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.libraries-and-templates")}),$is_collapsed$jscomp$1$$?(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_templates__title-icon-container",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_templates__title-icon-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.show")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_templates__title-icon main_ui_dashboard_templates__title-icon-collapsed",children:$app$main$ui$dashboard$templates$arrow_icon$$})]}):(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_dashboard_templates__title-icon-container",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_templates__title-icon-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.hide")}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_dashboard_templates__title-icon",children:$app$main$ui$dashboard$templates$arrow_icon$$})]})]})})};
$app$main$ui$dashboard$templates$card_item$$=function($id$jscomp$1013_props_80701$$){var $on_import$jscomp$4$$=$id$jscomp$1013_props_80701$$["on-import"],$collapsed$jscomp$4$$=$id$jscomp$1013_props_80701$$.collapsed,$index$jscomp$576$$=$id$jscomp$1013_props_80701$$.index,$item$jscomp$141$$=$id$jscomp$1013_props_80701$$.item,$is_visible$jscomp$2$$=$id$jscomp$1013_props_80701$$["is-visible"];$id$jscomp$1013_props_80701$$="card-container-"+($index$jscomp$576$$??"");var $href$jscomp$18$$=$APP.$app$common$uri$join$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$config$public_uri$$,
"images/thumbnails/template-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$141$$)??"")+".jpg"])),$hover_QMARK_$jscomp$14$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$on_click$jscomp$65$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_import$jscomp$4$$)],function($event$jscomp$695$$){return $on_import$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$?$on_import$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$141$$,
$event$jscomp$695$$):$on_import$jscomp$4$$($item$jscomp$141$$,$event$jscomp$695$$)}),$on_key_down$jscomp$24$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_import$jscomp$4$$)],function($event$jscomp$696$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$696$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$696$$),$on_import$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$?$on_import$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$141$$,
$event$jscomp$696$$):$on_import$jscomp$4$$($item$jscomp$141$$,$event$jscomp$696$$)):null});return(0,$APP.$rumext$v2$jsx$$)("div",{tabIndex:$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1295$$=$APP.$cljs$core$not$$($is_visible$jscomp$2$$);return $or__5025__auto__$jscomp$1295$$?$or__5025__auto__$jscomp$1295$$:$collapsed$jscomp$4$$}())?"-1":"0",id:$id$jscomp$1013_props_80701$$,"data-index":$index$jscomp$576$$,className:"main_ui_dashboard_templates__card-container",children:(0,$APP.$rumext$v2$jsxs$$)("a",
{onClick:$on_click$jscomp$65$$,onMouseDown:$APP.$app$util$dom$prevent_default$$,onMouseEnter:function(){return $APP.$cljs$core$reset_BANG_$$($hover_QMARK_$jscomp$14$$,!0)},onMouseLeave:function(){return $APP.$cljs$core$reset_BANG_$$($hover_QMARK_$jscomp$14$$,!1)},onKeyDown:$on_key_down$jscomp$24$$,className:"main_ui_dashboard_templates__template-card",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_templates__img-container",children:(0,$APP.$rumext$v2$jsx$$)("img",{src:""+
($href$jscomp$18$$??""),alt:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$141$$),loading:"lazy",decoding:"async"})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_templates__card-name",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_templates__card-text",children:$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($hover_QMARK_$jscomp$14$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.template.add-to-project"):
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$141$$)}),$app$main$ui$dashboard$templates$download_icon$$]})]})})};
$app$main$ui$dashboard$templates$card_item_link$$=function($id$jscomp$1014_props_80709$$){var $collapsed$jscomp$5$$=$id$jscomp$1014_props_80709$$.collapsed,$section$jscomp$41$$=$id$jscomp$1014_props_80709$$.section,$is_visible$jscomp$3$$=$id$jscomp$1014_props_80709$$["is-visible"];$id$jscomp$1014_props_80709$$="card-container-"+($id$jscomp$1014_props_80709$$.total??"");var $on_click$jscomp$66$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($section$jscomp$41$$)],
function(){return $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,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-libraries-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"dashboard",$APP.$cljs$cst$1355$section$$,$section$jscomp$41$$],null)))}),$on_key_down$jscomp$25$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_click$jscomp$66$$)],function($event$jscomp$697$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$697$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$697$$),$on_click$jscomp$66$$.$cljs$core$IFn$_invoke$arity$1$?$on_click$jscomp$66$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$697$$):$on_click$jscomp$66$$($event$jscomp$697$$)):null});return(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_dashboard_templates__card-container",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_templates__template-card",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_templates__img-container",children:(0,$APP.$rumext$v2$jsx$$)("a",{id:$id$jscomp$1014_props_80709$$,tabIndex:$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1296$$=$APP.$cljs$core$not$$($is_visible$jscomp$3$$);return $or__5025__auto__$jscomp$1296$$?$or__5025__auto__$jscomp$1296$$:
$collapsed$jscomp$5$$}())?"-1":"0",href:"https://penpot.app/libraries-templates",target:"_blank",onClick:$on_click$jscomp$66$$,onKeyDown:$on_key_down$jscomp$25$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_templates__template-link",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_templates__template-link-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.libraries-and-templates")}),(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_dashboard_templates__template-link-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.libraries-and-templates.explore")})]})})})})})};
$app$main$ui$dashboard$templates$templates_section_STAR_$$=function($props_80715_route$jscomp$20_route_name_total$jscomp$26$$){var $project_id$jscomp$49$$=$props_80715_route$jscomp$20_route_name_total$jscomp$26$$.projectId,$profile$jscomp$70$$=$props_80715_route$jscomp$20_route_name_total$jscomp$26$$.profile,$team_id$jscomp$154$$=$props_80715_route$jscomp$20_route_name_total$jscomp$26$$.teamId,$default_project_id$jscomp$2$$=$props_80715_route$jscomp$20_route_name_total$jscomp$26$$.defaultProjectId,
$templates$$=$APP.$rumext$v2$deref$$($app$main$ui$dashboard$templates$builtin_templates$$),$templates__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($templates$$)],function(){return $APP.$cljs$core$filterv$$(function($p1__80714_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80714_SHARP_$$),"welcome")&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80714_SHARP_$$),
"tutorial-for-beginners")},$templates$$)});$props_80715_route$jscomp$20_route_name_total$jscomp$26$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$route$$);$props_80715_route$jscomp$20_route_name_total$jscomp$26$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($props_80715_route$jscomp$20_route_name_total$jscomp$26$$,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));var $section$jscomp$42$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_80715_route$jscomp$20_route_name_total$jscomp$26$$,$APP.$cljs$cst$2469$dashboard_files$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($project_id$jscomp$49$$,$default_project_id$jscomp$2$$)?"dashboard-drafts":"dashboard-project":$APP.$cljs$core$name$$($props_80715_route$jscomp$20_route_name_total$jscomp$26$$),$collapsed_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$storage$global$$,
$cljs$cst$6062$app_DOT_main_DOT_ui_DOT_dashboard_DOT_templates_SLASH_collapsed$$)}),$collapsed$jscomp$6$$=$APP.$cljs$core$_deref$$($collapsed_STAR_$jscomp$1$$),$can_move$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$257$left$$,!1,$APP.$cljs$cst$258$right$$,!0],null));$props_80715_route$jscomp$20_route_name_total$jscomp$26$$=$APP.$cljs$core$count$$($templates__$1$$);var $content_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(),
$on_toggle_collapse$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($collapsed_STAR_$jscomp$1$$,$APP.$cljs$core$not$$)}),$on_wheel$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$698_event_STAR_$$){$event$jscomp$698_event_STAR_$$=$APP.$$jscomp$scope$1820006746$3$normalizeWheel$$($event$jscomp$698_event_STAR_$$);var $deltaY$$=$event$jscomp$698_event_STAR_$$.spinY,
$node$jscomp$447$$=$APP.$rumext$v2$ref_val$$($content_ref$jscomp$1$$);return $APP.$cljs$core$abs$$($deltaY$$)>$APP.$cljs$core$abs$$($event$jscomp$698_event_STAR_$$.spinX)?$node$jscomp$447$$.scrollBy({left:300*$deltaY$$,mode:"smooth"}):null}),$on_scroll$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($client_width_e$jscomp$406$$){var $scroll$jscomp$5_scroll_available$$=(0,$APP.$app$util$dom$get_target_scroll$$)($client_width_e$jscomp$406$$),$scroll_left$$=$APP.$cljs$cst$1543$scroll_left$$.$cljs$core$IFn$_invoke$arity$1$($scroll$jscomp$5_scroll_available$$);
$scroll$jscomp$5_scroll_available$$=$APP.$cljs$cst$1545$scroll_width$$.$cljs$core$IFn$_invoke$arity$1$($scroll$jscomp$5_scroll_available$$)-$scroll_left$$;$client_width_e$jscomp$406$$=$APP.$app$util$dom$get_client_size$$($APP.$app$util$dom$get_target$$($client_width_e$jscomp$406$$)).width;return $APP.$cljs$core$reset_BANG_$$($can_move$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$257$left$$,$scroll_left$$>0,$APP.$cljs$cst$258$right$$,$scroll$jscomp$5_scroll_available$$>$client_width_e$jscomp$406$$],
null))}),$on_move_left$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$699$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$right_arrow_QMARK_$$)($event$jscomp$699$$))?$APP.$rumext$v2$ref_val$$($content_ref$jscomp$1$$).scrollBy(300,0):$APP.$rumext$v2$ref_val$$($content_ref$jscomp$1$$).scrollBy(-300,0)}),$on_move_right$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$700$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$left_arrow_QMARK_$$)($event$jscomp$700$$))?
$APP.$rumext$v2$ref_val$$($content_ref$jscomp$1$$).scrollBy(-300,0):$APP.$rumext$v2$ref_val$$($content_ref$jscomp$1$$).scrollBy(300,0)}),$on_import_template$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($default_project_id$jscomp$2$$),$APP.$rumext$v2$adapt$$($project_id$jscomp$49$$),$APP.$rumext$v2$adapt$$($section$jscomp$42$$),$APP.$rumext$v2$adapt$$($templates__$1$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$154$$)],function($template$jscomp$10$$){return $app$main$ui$dashboard$templates$import_template_BANG_$$($template$jscomp$10$$,
$team_id$jscomp$154$$,$project_id$jscomp$49$$,$default_project_id$jscomp$2$$,$section$jscomp$42$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($templates__$1$$)],function(){var $content$jscomp$261$$=$APP.$rumext$v2$ref_val$$($content_ref$jscomp$1$$);if($content$jscomp$261$$!=null&&$templates__$1$$!=null){$content$jscomp$261$$.scrollTo({behavior:"instant",left:0,top:0});var $event$jscomp$inline_9208$$=new Event("scroll");return $content$jscomp$261$$!=
null?$content$jscomp$261$$.dispatchEvent($event$jscomp$inline_9208$$):null}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($profile$jscomp$70$$),$APP.$rumext$v2$adapt$$($collapsed$jscomp$6$$)],function(){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$global$$,$APP.$cljs$core$assoc$$,$cljs$cst$6062$app_DOT_main_DOT_ui_DOT_dashboard_DOT_templates_SLASH_collapsed$$,$collapsed$jscomp$6$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($profile$jscomp$70$$)?
$APP.$cljs$core$not$$($collapsed$jscomp$6$$):$profile$jscomp$70$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$fetch_builtin_templates$$()):null});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_templates__dashboard-templates-section "+($APP.$cljs$core$truth_$$($collapsed$jscomp$6$$)?"main_ui_dashboard_templates__collapsed":""),children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$templates$title_STAR_$$,{onClick:$on_toggle_collapse$jscomp$3$$,
isCollapsed:$collapsed$jscomp$6$$}),(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_dashboard_templates__content-description",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.libraries-and-templates.description")}),(0,$APP.$rumext$v2$jsxs$$)("div",{onScroll:$on_scroll$jscomp$2$$,onWheel:$on_wheel$jscomp$1$$,ref:$content_ref$jscomp$1$$,className:"main_ui_dashboard_templates__content",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$261$$,
$index$jscomp$577$$){$out_arr__44057__auto__$jscomp$261$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$templates$card_item$$,{"on-import":$on_import_template$$,item:$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($templates__$1$$,$index$jscomp$577$$),index:$index$jscomp$577$$,"is-visible":!0,collapsed:$collapsed$jscomp$6$$},$index$jscomp$577$$));return $out_arr__44057__auto__$jscomp$261$$},[],$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$count$$($templates__$1$$))),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$templates$card_item_link$$,{"is-visible":!0,collapsed:$collapsed$jscomp$6$$,section:$section$jscomp$42$$,total:$props_80715_route$jscomp$20_route_name_total$jscomp$26$$})]}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($can_move$$)))?(0,$APP.$rumext$v2$jsx$$)("button",{tabIndex:$collapsed$jscomp$6$$?"-1":"0",onClick:$on_move_left$$,onKeyDown:$on_move_left$$,className:"main_ui_dashboard_templates__move-button main_ui_dashboard_templates__move-left",
children:$app$main$ui$dashboard$templates$arrow_icon$$}):null,$APP.$cljs$core$truth_$$($APP.$cljs$cst$258$right$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($can_move$$)))?(0,$APP.$rumext$v2$jsx$$)("button",{tabIndex:$APP.$cljs$core$truth_$$($collapsed$jscomp$6$$)?"-1":"0",onClick:$on_move_right$$,onKeyDown:$on_move_right$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.next"),className:"main_ui_dashboard_templates__move-button main_ui_dashboard_templates__move-right",
children:$app$main$ui$dashboard$templates$arrow_icon$$}):null]})};
$app$main$ui$dashboard$dashboard_content_STAR_$$=function($clear_selected_fn_props_80787$$){var $default_project$jscomp$2$$=$clear_selected_fn_props_80787$$.defaultProject,$profile$jscomp$71$$=$clear_selected_fn_props_80787$$.profile,$projects$jscomp$11$$=$clear_selected_fn_props_80787$$.projects,$search_term$jscomp$5$$=$clear_selected_fn_props_80787$$.searchTerm,$section$jscomp$43$$=$clear_selected_fn_props_80787$$.section,$project$jscomp$42$$=$clear_selected_fn_props_80787$$.project,$team$jscomp$67$$=
$clear_selected_fn_props_80787$$.team,$container$jscomp$96$$=(0,$APP.$rumext$v2$use_ref$$)(),$content_width$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0),$project_id$jscomp$50$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$42$$),$team_id$jscomp$155$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$67$$),$permissions$jscomp$40$$=$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$67$$),$default_project_id$jscomp$3$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($default_project$jscomp$2$$,$APP.$cljs$cst$266$id$$),$on_resize$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($content_width$$,$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($container$jscomp$96$$),"clientWidth"))});$clear_selected_fn_props_80787$$=$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$main$data$dashboard$clear_selected_files$$())});
var $show_templates_QMARK_$$=function(){var $and__5023__auto__$jscomp$967$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1187$dashboard_templates_section$$);return $and__5023__auto__$jscomp$967$$?$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$40$$):$and__5023__auto__$jscomp$967$$}(),$show_deleted_QMARK_$jscomp$1$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$40$$),$section__$1$jscomp$2$$=$APP.$cljs$core$not$$($show_deleted_QMARK_$jscomp$1$$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$43$$,$APP.$cljs$cst$2493$dashboard_deleted$$)?$APP.$cljs$cst$2479$dashboard_recent$$:$section$jscomp$43$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $key1$jscomp$9$$=$APP.$goog$events$listen$$(window,"resize",$on_resize$jscomp$7$$);return function(){return $APP.$goog$events$unlistenByKey$$($key1$jscomp$9$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$($on_resize$jscomp$7$$);
return(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$clear_selected_fn_props_80787$$,ref:$container$jscomp$96$$,className:"main_ui_dashboard__dashboard-content",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$progress$progress_notification_widget_STAR_$$,{}),function(){switch($section__$1$jscomp$2$$ instanceof $APP.$cljs$core$Keyword$$?$section__$1$jscomp$2$$.$fqn$:null){case "dashboard-recent":return $APP.$cljs$core$seq$$($projects$jscomp$11$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$projects$projects_section_STAR_$$,{team:$team$jscomp$67$$,projects:$projects$jscomp$11$$,profile:$profile$jscomp$71$$}),$show_templates_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$templates$templates_section_STAR_$$,{profile:$profile$jscomp$71$$,projectId:$project_id$jscomp$50$$,teamId:$team_id$jscomp$155$$,defaultProjectId:$default_project_id$jscomp$3$$,contentWidth:$APP.$cljs$core$_deref$$($content_width$$)}):null]}):null;
case "dashboard-fonts":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$fonts_page_STAR_$$,{team:$team$jscomp$67$$});case "dashboard-font-providers":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$font_providers_page_STAR_$$,{team:$team$jscomp$67$$});case "dashboard-files":return $APP.$cljs$core$truth_$$($project$jscomp$42$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$files$files_section_STAR_$$,{team:$team$jscomp$67$$,
project:$project$jscomp$42$$}),$show_templates_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$templates$templates_section_STAR_$$,{profile:$profile$jscomp$71$$,teamId:$team_id$jscomp$155$$,projectId:$project_id$jscomp$50$$,defaultProjectId:$default_project_id$jscomp$3$$,contentWidth:$APP.$cljs$core$_deref$$($content_width$$)}):null]}):null;case "dashboard-search":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$search$search_page_STAR_$$,{team:$team$jscomp$67$$,searchTerm:$search_term$jscomp$5$$});
case "dashboard-libraries":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$libraries$libraries_page_STAR_$$,{team:$team$jscomp$67$$,defaultProject:$default_project$jscomp$2$$});case "dashboard-members":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$team_members_page_STAR_$$,{team:$team$jscomp$67$$,profile:$profile$jscomp$71$$});case "dashboard-invitations":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$team_invitations_page_STAR_$$,{team:$team$jscomp$67$$,profile:$profile$jscomp$71$$});
case "dashboard-webhooks":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$webhooks_page_STAR_$$,{team:$team$jscomp$67$$});case "dashboard-settings":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$team$team_settings_page_STAR_$$,{team:$team$jscomp$67$$,profile:$profile$jscomp$71$$});case "dashboard-deleted":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$deleted$deleted_section_STAR_$$,{team:$team$jscomp$67$$,projects:$projects$jscomp$11$$,profile:$profile$jscomp$71$$});default:return null}}()]})};
$app$main$ui$dashboard$use_plugin_register$$=function($plugin_url$jscomp$3$$,$team_id$jscomp$156$$,$project_id$jscomp$51$$){function $open_permissions_dialog$$($plugin$jscomp$13$$){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4798$plugin_permissions$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$3146$plugin$$,$plugin$jscomp$13$$,$APP.$cljs$cst$2436$on_accept$$,function(){$APP.$app$plugins$register$install_plugin_BANG_$$($plugin$jscomp$13$$);
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.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2479$dashboard_recent$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$156$$],null)),$open_try_out_dialog$$($plugin$jscomp$13$$)]))},$APP.$cljs$cst$4799$on_close$$,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.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2479$dashboard_recent$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$156$$],null))]))}],null))}function $open_try_out_dialog$$($plugin$jscomp$12$$){return $APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4800$plugin_try_out$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$3146$plugin$$,
$plugin$jscomp$12$$,$APP.$cljs$cst$2436$on_accept$$,function(){var $JSCompiler_temp_const$jscomp$inline_13191$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$,$JSCompiler_temp_const$jscomp$inline_13192$$=$APP.$app$main$data$modal$hide$$();var $JSCompiler_inline_result$jscomp$inline_13193_data$jscomp$inline_13194$$=$APP.$cljs$core$with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2141$project_id$$,$project_id$jscomp$51$$,$APP.$cljs$cst$723$name$$,
""+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.plugins.try-plugin")??"")+($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($plugin$jscomp$12$$)??"")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2445$on_success$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($navegate_file_BANG_$$,$plugin$jscomp$12$$)],null));$JSCompiler_inline_result$jscomp$inline_13193_data$jscomp$inline_13194$$=$APP.$cljs$core$with_meta$$($app$main$data$dashboard$create_file$$($JSCompiler_inline_result$jscomp$inline_13193_data$jscomp$inline_13194$$),
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"plugin-try-out"],null));return $JSCompiler_temp_const$jscomp$inline_13191$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_temp_const$jscomp$inline_13192$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$JSCompiler_inline_result$jscomp$inline_13193_data$jscomp$inline_13194$$]))},$APP.$cljs$cst$4799$on_close$$,$APP.$app$main$data$modal$hide_BANG_$$],null))}function $navegate_file_BANG_$$($plugin$jscomp$10$$,
$p__80793_project_id__$1$jscomp$5$$){var $data$jscomp$494_map__80794__$1$$=$APP.$cljs$core$__destructure_map$$($p__80793_project_id__$1$jscomp$5$$);$p__80793_project_id__$1$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$494_map__80794__$1$$,$APP.$cljs$cst$2141$project_id$$);var $id$jscomp$1015$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$494_map__80794__$1$$,$APP.$cljs$cst$266$id$$);$data$jscomp$494_map__80794__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$494_map__80794__$1$$,
$APP.$cljs$cst$142$data$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$plugins$delay_open_plugin$$($plugin$jscomp$10$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2489$workspace$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2028$page_id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$494_map__80794__$1$$,
$APP.$cljs$cst$2190$pages$$),0),$APP.$cljs$cst$2141$project_id$$,$p__80793_project_id__$1$jscomp$5$$,$APP.$cljs$cst$1628$file_id$$,$id$jscomp$1015$$,$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$156$$],null))]))}$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($plugin_url$jscomp$3$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$156$$),$APP.$rumext$v2$adapt$$($project_id$jscomp$51$$)],function(){if($APP.$cljs$core$truth_$$($plugin_url$jscomp$3$$)){$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$(function($plugin$jscomp$14$$){return $APP.$cljs$core$truth_$$($plugin$jscomp$14$$)?
($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,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"install-plugin",$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($plugin$jscomp$14$$),$APP.$cljs$cst$1960$url$$,$plugin_url$jscomp$3$$],null))),$open_permissions_dialog$$($plugin$jscomp$14$$)):
$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$("dashboard.plugins.parse-error")))},function(){return $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$("dashboard.plugins.bad-url")))},$APP.$app$main$data$plugins$fetch_manifest$$($plugin_url$jscomp$3$$));var $_STAR_sync_STAR__orig_val__80810$$=
$APP.$app$util$storage$_STAR_sync_STAR_$$;$APP.$app$util$storage$_STAR_sync_STAR_$$=!0;try{return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$storage$session$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$6064$plugin_url$$)}finally{$APP.$app$util$storage$_STAR_sync_STAR_$$=$_STAR_sync_STAR__orig_val__80810$$}}else return null})};
$app$main$ui$dashboard$use_templates_import$$=function($can_edit_QMARK_$jscomp$16$$,$template$jscomp$11$$,$project$jscomp$43$$){var $project_id$jscomp$52$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($project$jscomp$43$$,$APP.$cljs$cst$266$id$$),$team_id$jscomp$157$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($project$jscomp$43$$,$APP.$cljs$cst$1912$team_id$$);$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$16$$),
$APP.$rumext$v2$adapt$$($template$jscomp$11$$),$APP.$rumext$v2$adapt$$($project_id$jscomp$52$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$157$$)],function(){if($template$jscomp$11$$!=null&&$project_id$jscomp$52$$!=null&&$team_id$jscomp$157$$!=null){if($APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$16$$)){var $_STAR_sync_STAR__orig_val__80826_valid_url_QMARK__80849$$=$APP.$cuerdas$core$ends_with_QMARK_$$($template$jscomp$11$$,".penpot"),$template_name_80850$$=$APP.$cuerdas$core$starts_with_QMARK_$$($template$jscomp$11$$,
"http")?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($template$jscomp$11$$,$APP.$cljs$core$count$$($APP.$app$config$templates_uri$$)):$template$jscomp$11$$,$template_url_80851$$=["/github/penpot-files/",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($template_name_80850$$)].join(""),$on_import_80852$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$project$fetch_files$cljs$0core$0IFn$0_invoke$0arity$01$$($project_id$jscomp$52$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$dashboard$fetch_recent_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$157$$),$app$main$data$dashboard$fetch_projects$$($team_id$jscomp$157$$),$app$main$data$dashboard$clear_selected_files$$(),$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$$,
"install-template-from-link-finished",$APP.$cljs$cst$723$name$$,$template_name_80850$$,$APP.$cljs$cst$1960$url$$,$template_url_80851$$],null))]))};$_STAR_sync_STAR__orig_val__80826_valid_url_QMARK__80849$$?$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$$,
"install-template-from-link",$APP.$cljs$cst$723$name$$,$template_name_80850$$,$APP.$cljs$cst$1960$url$$,$template_url_80851$$],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$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$5099$import$$,$APP.$cljs$cst$2141$project_id$$,$project_id$jscomp$52$$,$APP.$cljs$cst$5100$entries$$,new $APP.$cljs$core$PersistentVector$$(null,1,
5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$723$name$$,$template_name_80850$$,$APP.$cljs$cst$1563$uri$$,$template_url_80851$$],null)],null),$APP.$cljs$cst$5101$on_finish_import$$,$on_import_80852$$],null))])):$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$("dashboard.import.bad-url")))}else $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$("dashboard.import.no-perms")));
$_STAR_sync_STAR__orig_val__80826_valid_url_QMARK__80849$$=$APP.$app$util$storage$_STAR_sync_STAR_$$;$APP.$app$util$storage$_STAR_sync_STAR_$$=!0;try{return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$storage$session$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$2360$template$$)}finally{$APP.$app$util$storage$_STAR_sync_STAR_$$=$_STAR_sync_STAR__orig_val__80826_valid_url_QMARK__80849$$}}else return null})};
$app$main$ui$dashboard$dashboard_STAR_$$=function($props_80829_team$jscomp$68$$){var $project_id$jscomp$53$$=$props_80829_team$jscomp$68$$.projectId,$profile$jscomp$72$$=$props_80829_team$jscomp$68$$.profile,$team_id$jscomp$158$$=$props_80829_team$jscomp$68$$.teamId,$search_term$jscomp$6$$=$props_80829_team$jscomp$68$$.searchTerm,$plugin_url$jscomp$4_plugin_url__$1$jscomp$1$$=$props_80829_team$jscomp$68$$.pluginUrl,$section$jscomp$44$$=$props_80829_team$jscomp$68$$.section,$template$jscomp$12_template__$1$jscomp$2$$=
$props_80829_team$jscomp$68$$.template;$props_80829_team$jscomp$68$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$team$$);var $projects$jscomp$12$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$projects$$),$project$jscomp$44$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($projects$jscomp$12$$,$project_id$jscomp$53$$),$projects__$1$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($projects$jscomp$12$$),$APP.$rumext$v2$adapt$$($team_id$jscomp$158$$)],
function(){return $APP.$cljs$core$filterv$$(function($p1__80828_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($team_id$jscomp$158$$,$APP.$cljs$cst$1912$team_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80828_SHARP_$$))},$APP.$cljs$core$vals$$($projects$jscomp$12$$))}),$can_edit_QMARK_$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props_80829_team$jscomp$68$$,$APP.$cljs$cst$1706$permissions$$),$APP.$cljs$cst$1580$can_edit$$);
$template$jscomp$12_template__$1$jscomp$2$$=$APP.$cljs$core$truth_$$($template$jscomp$12_template__$1$jscomp$2$$)?$template$jscomp$12_template__$1$jscomp$2$$:$APP.$cljs$cst$2360$template$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$storage$session$$);$plugin_url$jscomp$4_plugin_url__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($plugin_url$jscomp$4_plugin_url__$1$jscomp$1$$)?$plugin_url$jscomp$4_plugin_url__$1$jscomp$1$$:$APP.$cljs$cst$6064$plugin_url$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$storage$session$$);
var $default_project$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($projects__$1$jscomp$2$$)],function(){return $APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4713$is_default$$,$projects__$1$jscomp$2$$))});$APP.$app$main$ui$hooks$use_shortcuts$$($cljs$cst$6065$app_DOT_main_DOT_ui_DOT_dashboard_SLASH_dashboard$$,$APP.$app$main$data$dashboard$shortcuts$shortcuts_dashboard$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$158$$)],
function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$initialize$$($team_id$jscomp$158$$));return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4717$app_DOT_main_DOT_data_DOT_dashboard_SLASH_finalize$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1912$team_id$$,$team_id$jscomp$158$$],null)))}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],
function(){var $key$jscomp$425$$=$APP.$goog$events$listen$$($APP.$goog$global$$,"keydown",function($event$jscomp$701$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$701$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$701$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$dashboard$open_selected_file$$())):null});return function(){return $APP.$goog$events$unlistenByKey$$($key$jscomp$425$$)}});$app$main$ui$dashboard$use_plugin_register$$($plugin_url$jscomp$4_plugin_url__$1$jscomp$1$$,
$team_id$jscomp$158$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($default_project$jscomp$3$$));$app$main$ui$dashboard$use_templates_import$$($can_edit_QMARK_$jscomp$17$$,$template$jscomp$12_template__$1$jscomp$2$$,$default_project$jscomp$3$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$current_project_id$$),{value:$project_id$jscomp$53$$,children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$modal$modal_container_STAR_$$,{}),(0,$APP.$rumext$v2$jsxs$$)("main",
{className:"main_ui_dashboard__dashboard",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$dashboard$sidebar$sidebar_STAR_$$,{team:$props_80829_team$jscomp$68$$,projects:$projects__$1$jscomp$2$$,project:$project$jscomp$44$$,defaultProject:$default_project$jscomp$3$$,profile:$profile$jscomp$72$$,section:$section$jscomp$44$$,searchTerm:$search_term$jscomp$6$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$dashboard_content_STAR_$$,{projects:$projects__$1$jscomp$2$$,profile:$profile$jscomp$72$$,
project:$project$jscomp$44$$,defaultProject:$default_project$jscomp$3$$,section:$section$jscomp$44$$,searchTerm:$search_term$jscomp$6$$,team:$props_80829_team$jscomp$68$$})]},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($props_80829_team$jscomp$68$$)??""))]})};$APP.$app$main$ui$dashboard$dashboard_page_STAR_$$=function($props_80836$$){return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$dashboard$dashboard_STAR_$$,$props_80836$$)};
$cljs$cst$6061$app_DOT_main_DOT_ui_DOT_dashboard_DOT_projects_SLASH_dashboard$$=new $APP.$cljs$core$Keyword$$("app.main.ui.dashboard.projects","dashboard","app.main.ui.dashboard.projects/dashboard",-556856058);$cljs$cst$6044$search$$=new $APP.$cljs$core$Keyword$$(null,"search","search",1564939822);$cljs$cst$6045$get_all_projects$$=new $APP.$cljs$core$Keyword$$(null,"get-all-projects","get-all-projects",1718710818);
$cljs$cst$6052$can_restore$$=new $APP.$cljs$core$Keyword$$(null,"can-restore","can-restore",388064375);$cljs$cst$6043$is_default_team$$=new $APP.$cljs$core$Keyword$$(null,"is-default-team","is-default-team",1150636297);$cljs$cst$6062$app_DOT_main_DOT_ui_DOT_dashboard_DOT_templates_SLASH_collapsed$$=new $APP.$cljs$core$Keyword$$("app.main.ui.dashboard.templates","collapsed","app.main.ui.dashboard.templates/collapsed",1868771256);
$cljs$cst$6065$app_DOT_main_DOT_ui_DOT_dashboard_SLASH_dashboard$$=new $APP.$cljs$core$Keyword$$("app.main.ui.dashboard","dashboard","app.main.ui.dashboard/dashboard",25877386);$cljs$cst$6047$thumbnails_SLASH_generate_for_file_wasm$$=new $APP.$cljs$core$Keyword$$("thumbnails","generate-for-file-wasm","thumbnails/generate-for-file-wasm",-1780261229);$cljs$cst$6054$has_files$$=new $APP.$cljs$core$Keyword$$(null,"has-files","has-files",-150994558);
$cljs$cst$6051$limit$$=new $APP.$cljs$core$Keyword$$(null,"limit","limit",-1355822363);$cljs$cst$6053$create_fn$$=new $APP.$cljs$core$Keyword$$(null,"create-fn","create-fn",-1596040813);$cljs$cst$6049$file_if$$=new $APP.$cljs$core$Keyword$$(null,"file-if","file-if",-1983487897);$cljs$cst$6056$font_family_tmp$$=new $APP.$cljs$core$Keyword$$(null,"font-family-tmp","font-family-tmp",1518875480);
$cljs$cst$6048$thumbnails_SLASH_generate_for_file$$=new $APP.$cljs$core$Keyword$$("thumbnails","generate-for-file","thumbnails/generate-for-file",-1533672464);$cljs$cst$6059$app_DOT_main_DOT_ui_DOT_dashboard_DOT_libraries_SLASH_dashboard$$=new $APP.$cljs$core$Keyword$$("app.main.ui.dashboard.libraries","dashboard","app.main.ui.dashboard.libraries/dashboard",-1567324353);$cljs$cst$6050$sample$$=new $APP.$cljs$core$Keyword$$(null,"sample","sample",79023601);
$cljs$cst$6060$app_DOT_main_DOT_ui_DOT_dashboard_DOT_projects_SLASH_show_team_hero$$=new $APP.$cljs$core$Keyword$$("app.main.ui.dashboard.projects","show-team-hero","app.main.ui.dashboard.projects/show-team-hero",-741317864);$cljs$cst$6057$create_font_variant$$=new $APP.$cljs$core$Keyword$$(null,"create-font-variant","create-font-variant",-341336194);
$cljs$cst$6055$app_DOT_main_DOT_ui_DOT_dashboard_DOT_files_SLASH_dashboard$$=new $APP.$cljs$core$Keyword$$("app.main.ui.dashboard.files","dashboard","app.main.ui.dashboard.files/dashboard",1600474145);$cljs$cst$6058$providers$$=new $APP.$cljs$core$Keyword$$(null,"providers","providers",543153826);var $app$main$ui$components$progress$neutral_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_components_progress__icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-msg-neutral"})}),$app$main$ui$components$progress$error_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_components_progress__icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-delete-text"})}),$app$main$ui$components$progress$close_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",
{width:500,className:"main_ui_components_progress__close-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-close"})});$APP.$app$common$logging$loggers$$.set("app.main.ui.dashboard.grid",$APP.$app$common$logging$level__GT_int$$($APP.$cljs$cst$1158$debug$$));var $app$main$ui$dashboard$grid$menu_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_grid__menu-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-menu"})});var $app$main$ui$dashboard$deleted$ref_COLON_deleted_files$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4734$deleted_files$$,$APP.$app$main$store$state$$),$app$main$ui$dashboard$deleted$menu_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_deleted__menu-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-menu"})});var $app$main$ui$dashboard$pin_button$pin_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_pin_button__icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-pin"})});var $app$main$ui$dashboard$files$menu_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_files__menu-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-menu"})});var $app$main$ui$dashboard$fonts$accept_font_types$$=[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(",",$APP.$app$common$media$font_types$$)),",.ttf,application/font-woff,woff,.otf"].join(""),$app$main$ui$dashboard$fonts$header_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($props_80505$$){$app$main$ui$dashboard$fonts$use_page_title$$($props_80505$$.team,$props_80505$$.section);return(0,$APP.$rumext$v2$jsx$$)("header",{"data-testid":"dashboard-header",
className:"main_ui_dashboard_fonts__dashboard-header",children:(0,$APP.$rumext$v2$jsx$$)("div",{id:"dashboard-fonts-title",className:"main_ui_dashboard_fonts__dashboard-title",children:(0,$APP.$rumext$v2$jsx$$)("h1",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.fonts")})})})}),$app$main$ui$dashboard$fonts$installed_font$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($menu_open_QMARK_$jscomp$3_props_80558$$){var $variants$jscomp$10$$=$menu_open_QMARK_$jscomp$3_props_80558$$.variants,
$font_id$jscomp$35$$=$menu_open_QMARK_$jscomp$3_props_80558$$["font-id"],$can_edit$jscomp$16$$=$menu_open_QMARK_$jscomp$3_props_80558$$["can-edit"],$font$jscomp$56$$=$APP.$cljs$core$first$$($variants$jscomp$10$$),$menu_open_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$menu_open_QMARK_$jscomp$3_props_80558$$=$APP.$cljs$core$_deref$$($menu_open_STAR_$jscomp$1$$);var $edition_STAR_$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$edition_QMARK_$jscomp$4$$=
$APP.$cljs$core$_deref$$($edition_STAR_$jscomp$3$$),$state_STAR_$jscomp$27$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$56$$)),$font_family$jscomp$10$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$27$$),$variants__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variants$jscomp$10$$)],function(){return $APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($item$jscomp$139$$){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$139$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("normal",$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$139$$))?1:2],null)},$variants$jscomp$10$$)}),$on_change$jscomp$98$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$684$$){return $APP.$cljs$core$reset_BANG_$$($state_STAR_$jscomp$27$$,(0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$684$$))}),
$on_edit$jscomp$17$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($edition_STAR_$jscomp$3$$,!0)}),$on_menu_open$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($menu_open_STAR_$jscomp$1$$,!0)}),$on_menu_close$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($menu_open_STAR_$jscomp$1$$,!1)}),$on_save$jscomp$4$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font_family$jscomp$10$$)],function(){$APP.$cljs$core$reset_BANG_$$($edition_STAR_$jscomp$3$$,!1);return $APP.$cuerdas$core$blank_QMARK_$$($font_family$jscomp$10$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$fonts$update_font$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,$font_id$jscomp$35$$,$APP.$cljs$cst$723$name$$,$font_family$jscomp$10$$],
null)))}),$on_key_down$jscomp$22$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_save$jscomp$4$$)],function($event$jscomp$685$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$685$$))?$on_save$jscomp$4$$.$cljs$core$IFn$_invoke$arity$1$?$on_save$jscomp$4$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$685$$):$on_save$jscomp$4$$($event$jscomp$685$$):null}),$on_cancel$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($edition_STAR_$jscomp$3$$,
!1);return $APP.$cljs$core$reset_BANG_$$($state_STAR_$jscomp$27$$,$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$56$$))}),$on_delete_font$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font_id$jscomp$35$$)],function(){var $options$jscomp$630$$=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-font.title"),
$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-font.message"),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete"),$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$fonts$delete_font$$($font_id$jscomp$35$$))}],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$01$$($options$jscomp$630$$))}),
$on_delete_variant$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$686_options$jscomp$631$$){var $id$jscomp$1009$$=$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$686_options$jscomp$631$$),"id"));$event$jscomp$686_options$jscomp$631$$=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-font-variant.title"),
$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-font-variant.message"),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete"),$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$fonts$delete_font_variant$$($id$jscomp$1009$$))}],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$01$$($event$jscomp$686_options$jscomp$631$$))});
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__font-item main_ui_dashboard_fonts__table-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__family "+($APP.$cljs$core$truth_$$($edition_QMARK_$jscomp$4$$)?"main_ui_dashboard_fonts__is-edition":""),children:$edition_QMARK_$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",autoFocus:!0,defaultValue:$font_family$jscomp$10$$,onKeyDown:$on_key_down$jscomp$22$$,
onChange:$on_change$jscomp$98$$}):(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$56$$)})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__variants",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$258$$,$map__80563__$1_p__80562$$){$map__80563__$1_p__80562$$=$APP.$cljs$core$__destructure_map$$($map__80563__$1_p__80562$$);
var $id$jscomp$1010$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80563__$1_p__80562$$,$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$258$$.push((0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__variant "+($APP.$cljs$core$not$$($can_edit$jscomp$16$$)?"main_ui_dashboard_fonts__inhert-variant":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_fonts__label",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$font_variant_display_name_STAR_$$,
{variant:$map__80563__$1_p__80562$$})}),$APP.$cljs$core$truth_$$($can_edit$jscomp$16$$)?(0,$APP.$rumext$v2$jsx$$)("span",{"data-id":""+($id$jscomp$1010$$??""),onClick:$on_delete_variant$$,className:"main_ui_dashboard_fonts__icon main_ui_dashboard_fonts__close",children:$APP.$app$main$ui$icons$add$$}):null]},""+($id$jscomp$1010$$??"")));return $out_arr__44057__auto__$jscomp$258$$},[],$variants__$1$$)}),$edition_QMARK_$jscomp$4$$?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__options",
children:[(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cuerdas$core$blank_QMARK_$$($font_family$jscomp$10$$),onClick:$on_save$jscomp$4$$,className:"main_ui_dashboard_fonts__btn-primary "+($APP.$cuerdas$core$blank_QMARK_$$($font_family$jscomp$10$$)?"main_ui_dashboard_fonts__btn-disabled":""),children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.save")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_cancel$jscomp$10$$,className:"main_ui_dashboard_fonts__icon main_ui_dashboard_fonts__close",
children:$APP.$app$main$ui$icons$close$$})]}):$APP.$cljs$core$truth_$$($can_edit$jscomp$16$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_fonts__table-field main_ui_dashboard_fonts__options",children:[(0,$APP.$rumext$v2$jsx$$)("span",{onClick:$on_menu_open$$,className:"main_ui_dashboard_fonts__icon",children:$APP.$app$main$ui$icons$menu$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$fonts$installed_font_context_menu$$,{"on-close":$on_menu_close$jscomp$6$$,"is-open":$menu_open_QMARK_$jscomp$3_props_80558$$,
"on-delete":$on_delete_font$$,"on-edit":$on_edit$jscomp$17$$})]}):null]})}),$app$main$ui$dashboard$fonts$ref_COLON_fonts$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2987$fonts$$,$APP.$app$main$store$state$$);var $app$main$ui$dashboard$libraries$ref_COLON_selected_files$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($files$jscomp$44_state$jscomp$1123$$){var $selected$jscomp$205$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($files$jscomp$44_state$jscomp$1123$$,$APP.$cljs$cst$2143$selected_files$$);$files$jscomp$44_state$jscomp$1123$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($files$jscomp$44_state$jscomp$1123$$,$APP.$cljs$cst$2139$shared_files$$);return $APP.$app$main$refs$extract_selected_files$$($files$jscomp$44_state$jscomp$1123$$,
$selected$jscomp$205$$)},$APP.$app$main$store$state$$);var $app$main$ui$dashboard$projects$show_more_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_projects__show-more-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-arrow"})}),$app$main$ui$dashboard$projects$close_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_projects__close-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-close"})}),$app$main$ui$dashboard$projects$add_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",
{width:500,className:"main_ui_dashboard_projects__add-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-add"})}),$app$main$ui$dashboard$projects$menu_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_projects__menu-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-menu"})}),$app$main$ui$dashboard$projects$header_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($can_edit$jscomp$20_props_80730$$){$can_edit$jscomp$20_props_80730$$=
$can_edit$jscomp$20_props_80730$$.canEdit;var $on_click$jscomp$63$$=$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$main$data$dashboard$create_project$$())});return(0,$APP.$rumext$v2$jsxs$$)("header",{"data-testid":"dashboard-header",className:"main_ui_dashboard_projects__dashboard-header",children:[(0,$APP.$rumext$v2$jsx$$)("div",{id:"dashboard-projects-title",className:"main_ui_dashboard_projects__dashboard-title",
children:(0,$APP.$rumext$v2$jsx$$)("h1",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.projects-title")})}),$APP.$cljs$core$truth_$$($can_edit$jscomp$20_props_80730$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_click$jscomp$63$$,"data-testid":"new-project-button",className:"main_ui_dashboard_projects__btn-secondary main_ui_dashboard_projects__btn-small",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.new-project")}):null]})}),$app$main$ui$dashboard$projects$team_hero_STAR_$$=
$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($on_nav_members_click_props_80731$$){var $on_close$jscomp$44$$=$on_nav_members_click_props_80731$$.onClose,$team$jscomp$63$$=$on_nav_members_click_props_80731$$.team;$on_nav_members_click_props_80731$$=$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$common$go_to_dashboard_members$$())});var $on_invite$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$63$$)],
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,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$4888$invite_members$$,$APP.$cljs$cst$2449$team$$,$team$jscomp$63$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$4894$hero$$],null)))}),$on_close_SINGLEQUOTE_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_close$jscomp$44$$)],
function($event$jscomp$688$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$688$$);return $on_close$jscomp$44$$.$cljs$core$IFn$_invoke$arity$1$?$on_close$jscomp$44$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$688$$):$on_close$jscomp$44$$($event$jscomp$688$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_projects__team-hero",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_projects__img-wrapper",children:(0,$APP.$rumext$v2$jsx$$)("img",{src:"images/deco-team-banner.png",
border:"0",role:"presentation"})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_projects__text",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_dashboard_projects__title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dasboard.team-hero.title")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_dashboard_projects__info",children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dasboard.team-hero.text")}),
(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$on_nav_members_click_props_80731$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dasboard.team-hero.management")})]}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_invite$$,className:"main_ui_dashboard_projects__btn-primary main_ui_dashboard_projects__invite",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("onboarding.choice.team-up.invite-members")})]}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_close_SINGLEQUOTE_$$,
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),className:"main_ui_dashboard_projects__close",children:$app$main$ui$dashboard$projects$close_icon$$})]})}),$app$main$ui$dashboard$projects$ref_COLON_recent_files$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4725$recent_files$$,$APP.$app$main$store$state$$);var $app$main$ui$dashboard$search$ref_COLON_search_result$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4722$search_result$$,$APP.$app$main$store$state$$),$app$main$ui$dashboard$search$ref_COLON_selected$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($state$jscomp$1124$$){var $files$jscomp$48$$=$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,$APP.$cljs$cst$4722$search_result$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1124$$));
return $APP.$app$main$refs$extract_selected_files$$($files$jscomp$48$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1124$$,$APP.$cljs$cst$2143$selected_files$$))},$APP.$app$main$store$state$$);var $app$main$ui$dashboard$templates$arrow_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_templates__arrow-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-arrow"})}),$app$main$ui$dashboard$templates$download_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_dashboard_templates__download-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-add"})}),$app$main$ui$dashboard$templates$builtin_templates$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4729$builtin_templates$$,
$APP.$app$main$store$state$$);
//# sourceMappingURL=main-dashboard.js.map
